Class: KnifeSpork::SporkCheck

Inherits:
Chef::Knife
  • Object
show all
Includes:
Runner
Defined in:
lib/chef/knife/spork-check.rb

Instance Method Summary collapse

Methods included from Runner

included

Instance Method Details

#runObject



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/chef/knife/spork-check.rb', line 39

def run
  self.config = Chef::Config.merge!(config)

  if name_args.empty?
    ui.fatal 'You must specify a cookbook name!'
    show_usage
    exit(1)
  end

  #First load so plugins etc know what to work with
  initial_load
  
  run_plugins(:before_check)

  #Reload cookbook in case a VCS plugin found updates
  initial_load

  check
  run_plugins(:after_check)
end