Class: Yutani::Config
- Inherits:
-
Hash
- Object
- Hash
- Yutani::Config
- Defined in:
- lib/yutani/config.rb
Constant Summary collapse
- CONFIG_FILE =
'.yutani.yml'
- DEFAULTS =
Strings rather than symbols are used for compatibility with YAML.
Config[{ "terraform_dir" => "terraform", "hiera_config" => { :backends => ["yaml"]
Class Method Summary collapse
-
.from(user_config) ⇒ Object
Returns a Configuration filled with defaults and fixed for common problems and backwards-compatibility.
Instance Method Summary collapse
Class Method Details
Instance Method Details
#read_config_file ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/yutani/config.rb', line 26 def read_config_file if File.exists? CONFIG_FILE YAML.load_file(CONFIG_FILE) else {} end end |