Module: ThorYamlLoader
- Included in:
- CfnCli::Cli
- Defined in:
- lib/cfncli/thor_yaml.rb
Instance Method Summary collapse
Instance Method Details
#options ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/cfncli/thor_yaml.rb', line 2 def = super config_file = ['config_file'] return unless File.exists?(config_file) defaults = ::YAML::load_file(config_file) || {} Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge()) end |