Module: ChefDK::Configurable

Instance Method Summary collapse

Instance Method Details

#chef_configObject



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_configObject



42
43
44
# File 'lib/chef-dk/configurable.rb', line 42

def chefdk_config
  chef_config.chefdk
end

#config_loaderObject



46
47
48
# File 'lib/chef-dk/configurable.rb', line 46

def config_loader
  @config_loader ||= Chef::WorkstationConfigLoader.new(config[:config_file])
end