Class: KnifeSpork::SporkEnvironmentCheck
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- KnifeSpork::SporkEnvironmentCheck
- Defined in:
- lib/chef/knife/spork-environment-check.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/chef/knife/spork-environment-check.rb', line 18 def run self.class.send(:include, KnifeSpork::Runner) self.config = Chef::Config.merge!(config) #First load so plugins etc know what to work with @environments = verify_and_load_environments run_plugins(:before_environmentcheck) #Reload cookbook and env in case a VCS plugin found updates @environments = verify_and_load_environments check_environments run_plugins(:after_environmentcheck) end |