Class: Chef::Knife
- Inherits:
-
Object
- Object
- Chef::Knife
- Defined in:
- lib/spaux/chef/monkey_patches/knife.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run(args, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/spaux/chef/monkey_patches/knife.rb', line 6 def self.run(args, ={}) # Fallback debug logging. Normally the logger isn't configured until we # read the config, but this means any logging that happens before the # config file is read may be lost. If the KNIFE_DEBUG variable is set, we # setup the logger for debug logging to stderr immediately to catch info # from early in the setup process. if ENV['KNIFE_DEBUG'] Chef::Log.init($stderr) Chef::Log.level(:debug) end load_commands subcommand_class = subcommand_class_from(args) subcommand_class. = .merge!(subcommand_class.) subcommand_class.load_deps instance = subcommand_class.new(args) instance.configure_spaux instance.configure_chef instance.run_with_pretty_exceptions end |
Instance Method Details
#configure_spaux ⇒ Object
3 4 5 |
# File 'lib/spaux/chef/monkey_patches/knife.rb', line 3 def configure_spaux config.merge!(Spaux::default_chef_config(:knife)) end |