Class: Chef::Application::Knife
- Inherits:
-
Chef::Application
- Object
- Chef::Application
- Chef::Application::Knife
- 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
-
#run ⇒ Object
Run knife.
Methods inherited from Chef::Application
#apply_extra_config_options, #auto_log_level?, #configure_chef, #configure_encoding, #configure_log_location, #configure_logging, #configure_stdout_logger, debug_stacktrace, #emit_warnings, exit!, fatal!, #initialize, #load_config_file, normalize_exit_code, #reconfigure, #resolve_log_level, #run_application, #run_chef_client, #set_specific_recipes, #setup_application, #setup_signal_handlers, #using_output_formatter?, #want_additional_logger?
Constructor Details
This class inherits a constructor from Chef::Application
Instance Method Details
#run ⇒ Object
Run knife
152 153 154 155 156 157 158 |
# File 'lib/chef/application/knife.rb', line 152 def run Mixlib::Log::Formatter.show_time = false quiet_traps Chef::Knife.run(ARGV, ) exit 0 end |