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, exit!, fatal!, #initialize, #reconfigure, #run_application, #setup_application

Constructor Details

This class inherits a constructor from Chef::Application

Instance Method Details

#runObject

Run knife



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

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