Module: ChefDK::Configurable
- Included in:
- ChefDK::Command::Diff, ChefDK::Command::Export, ChefDK::Command::GeneratorCommands::Base, ChefDK::Command::Provision, ChefDK::Command::Push, ChefDK::Command::PushArchive, ChefDK::Command::ShowPolicy
- Defined in:
- lib/chef-dk/configurable.rb
Instance Method Summary collapse
Instance Method Details
#chef_config ⇒ Object
36 37 38 39 40 |
# File 'lib/chef-dk/configurable.rb', line 36 def chef_config return @chef_config if @chef_config config_loader.load @chef_config = Chef::Config end |
#chefdk_config ⇒ Object
42 43 44 |
# File 'lib/chef-dk/configurable.rb', line 42 def chefdk_config chef_config.chefdk end |
#config_loader ⇒ Object
46 47 48 |
# File 'lib/chef-dk/configurable.rb', line 46 def config_loader @config_loader ||= Chef::WorkstationConfigLoader.new(config[:config_file]) end |