Class: KnifeSpork::SporkOmni
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- KnifeSpork::SporkOmni
- Defined in:
- lib/chef/knife/spork-omni.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/chef/knife/spork-omni.rb', line 50 def run self.class.send(:include, KnifeSpork::Runner) self.config = Chef::Config.merge!(config) if name_args.empty? ui.fatal 'You must specify a cookbook name!' show_usage exit(1) end # Temporary fix for #138 to allow Berkshelf functionality # to be bypassed until #85 has been completed and Berkshelf 3 support added unload_berkshelf_if_specified cookbook = name_args.first run_plugins(:before_omni) omni(cookbook) run_plugins(:after_omni) end |