Class: Feed2Gram::LoadsConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/feed2gram/loads_config.rb

Instance Method Summary collapse

Instance Method Details

#load(options) ⇒ Object



20
21
22
23
24
# File 'lib/feed2gram/loads_config.rb', line 20

def load(options)
  puts "Loading config from: #{options.config_path}" if options.verbose
  yaml = YAML.load_file(options.config_path, permitted_classes: [Time])
  Config.new(**yaml)
end