Method: Kitchen::Provisioner::ChefBase#initialize
- Defined in:
- lib/kitchen/provisioner/chef_base.rb
#initialize(config = {}) ⇒ ChefBase
Reads the local Chef::Config object (if present). We do this because we want to start bring Chef config and Chef Workstation config closer together. For example, we want to configure proxy settings in 1 location instead of 3 configuration files.
235 236 237 238 239 240 241 242 243 244 |
# File 'lib/kitchen/provisioner/chef_base.rb', line 235 def initialize(config = {}) super(config) if defined?(ChefConfig::WorkstationConfigLoader) ChefConfig::WorkstationConfigLoader.new(config[:config_path]).load end # This exports any proxy config present in the Chef config to # appropriate environment variables, which Test Kitchen respects ChefConfig::Config.export_proxies if defined?(ChefConfig::Config.export_proxies) end |