Class: Chef::Application::Knife

Inherits:
Chef::Application
  • Object
show all
Defined in:
lib/chef/application/knife.rb

Constant Summary collapse

NO_COMMAND_GIVEN =
"You need to pass a sub-command (e.g., knife SUB-COMMAND)\n".freeze

Instance Method Summary collapse

Instance Method Details

#runObject

Run knife



163
164
165
166
167
168
169
170
# File 'lib/chef/application/knife.rb', line 163

def run
  ChefConfig::PathHelper.per_tool_home_environment = "KNIFE_HOME"
  Mixlib::Log::Formatter.show_time = false
  validate_and_parse_options
  quiet_traps
  Chef::Knife.run(ARGV, options)
  exit 0
end