class AllImages::App
def load_config
def load_config config_filename = '.all_images.yml' if @args.empty? unless File.exist?(config_filename) AllImages::Config.init(config_filename) puts bold("Config file #{config_filename} not found!\n\n") + "The following example was created, adapt to your own needs:\n\n", AllImages::Config.example, "" return end else config_filename = @args.shift end AllImages::Config.load(config_filename) end