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, #setup_application

Constructor Details

This class inherits a constructor from Chef::Application

Instance Method Details

#runObject

Run knife



124
125
126
127
128
129
130
# File 'lib/chef/application/knife.rb', line 124

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