Class: Ridley::Chef::Config
- Inherits:
-
Object
- Object
- Ridley::Chef::Config
- Defined in:
- lib/ridley/chef/config.rb
Instance Method Summary collapse
-
#initialize(path, options = {}) ⇒ Config
constructor
Create a new Chef Config object.
-
#to_hash ⇒ Object
The configuration as a hash.
Constructor Details
#initialize(path, options = {}) ⇒ Config
Create a new Chef Config object.
12 13 14 15 16 |
# File 'lib/ridley/chef/config.rb', line 12 def initialize(path, = {}) ChefConfig::WorkstationConfigLoader.new(path).load ChefConfig::Config.merge!() ChefConfig::Config.export_proxies # Set proxy settings as environment variables end |
Instance Method Details
#to_hash ⇒ Object
The configuration as a hash
19 20 21 |
# File 'lib/ridley/chef/config.rb', line 19 def to_hash ChefConfig::Config.save(true) end |