Class: Chef::Application::Knife

Inherits:
Chef::Application 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"

Instance Method Summary collapse

Methods inherited from Chef::Application

#auto_log_level?, #configure_chef, #configure_logging, #configure_stdout_logger, debug_stacktrace, exit!, fatal!, #initialize, #reconfigure, #resolve_log_level, #run_application, #run_chef_client, #setup_application, #using_output_formatter?, #want_additional_logger?

Constructor Details

This class inherits a constructor from Chef::Application

Instance Method Details

#runObject

Run knife



119
120
121
122
123
124
125
# File 'lib/chef/application/knife.rb', line 119

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