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

#configure_chef, #configure_logging, debug_stacktrace, exit!, fatal!, #initialize, #reconfigure, #run_application, #run_chef_client, #setup_application

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