module ChefCLI::Configurable
Public Instance Methods
chef_config()
click to toggle source
# File lib/chef-cli/configurable.rb, line 50 def chef_config return @chef_config if @chef_config config_loader.load @chef_config = Chef::Config CookbookOmnifetch.integration.default_chef_server_http_client = default_chef_server_http_client @chef_config end
chefcli_config()
click to toggle source
# File lib/chef-cli/configurable.rb, line 59 def chefcli_config chef_config.chefcli end
config_loader()
click to toggle source
# File lib/chef-cli/configurable.rb, line 63 def config_loader @config_loader ||= Chef::WorkstationConfigLoader.new(config[:config_file]) end
default_chef_server_http_client()
click to toggle source
# File lib/chef-cli/configurable.rb, line 80 def default_chef_server_http_client lambda do ChefServerAPIMulti.new(@chef_config.chef_server_url, signing_key_filename: @chef_config.client_key, client_name: @chef_config.node_name) end end
generator_config()
click to toggle source
# File lib/chef-cli/configurable.rb, line 67 def generator_config chefcli_config.generator end
knife_config()
click to toggle source
# File lib/chef-cli/configurable.rb, line 71 def knife_config chef_config.knife end
reset_config!()
click to toggle source
# File lib/chef-cli/configurable.rb, line 75 def reset_config! @chef_config = nil @config_loader = nil end