Module: ChefDK::Configurable

Instance Method Summary collapse

Instance Method Details

#chef_configObject



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

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

#chefdk_configObject



53
54
55
# File 'lib/chef-dk/configurable.rb', line 53

def chefdk_config
  chef_config.chefdk
end

#config_loaderObject



57
58
59
# File 'lib/chef-dk/configurable.rb', line 57

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

#generator_configObject



61
62
63
# File 'lib/chef-dk/configurable.rb', line 61

def generator_config
  chefdk_config.generator
end

#knife_configObject



65
66
67
# File 'lib/chef-dk/configurable.rb', line 65

def knife_config
  chef_config.knife
end