Method: Tailor::Configuration#load!

Defined in:
lib/tailor/configuration.rb

#load!Object

Call this to load settings from the config file and from CLI options.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/tailor/configuration.rb', line 61

def load!
  if config_file
    load_from_config_file(config_file)

    if @config_from_file
      get_formatters_from_config_file
      #get_file_sets_from_config_file unless @runtime_file_list
      get_file_sets_from_config_file
    end
  else
    log 'Creating default file set...'
    @file_sets = { default: FileSet.new(@runtime_file_list) }
  end

  get_output_file_from_cli_opts
  get_formatters_from_cli_opts
  get_file_sets_from_cli_opts
  get_style_from_cli_opts
end