Class: CookbookJob

Inherits:
Guard::Chef::Base show all
Defined in:
lib/guard/chef/cookbook_job.rb

Instance Attribute Summary

Attributes inherited from Guard::Chef::Base

#name, #target

Instance Method Summary collapse

Methods inherited from Guard::Chef::Base

accepts?, #initialize, #kind, #update

Constructor Details

This class inherits a constructor from Guard::Chef::Base

Instance Method Details

#commandObject



3
4
5
# File 'lib/guard/chef/cookbook_job.rb', line 3

def command
  "knife cookbook upload -VV '#{name}'"
end

#sentinel_reObject



7
8
9
# File 'lib/guard/chef/cookbook_job.rb', line 7

def sentinel_re
  /(?:upload complete|uploaded \d+ cookbook)/i
end