Module: ChefDK::Configurable

Instance Method Summary collapse

Instance Method Details

#chef_configObject



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

def chef_config
  return @chef_config if @chef_config
  config_loader.load
  @chef_config = Chef::Config
end

#chefdk_configObject



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

def chefdk_config
  chef_config.chefdk
end

#config_loaderObject



51
52
53
# File 'lib/chef-dk/configurable.rb', line 51

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