Class: DataBagJob

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

Instance Attribute Summary

Attributes inherited from Guard::Chef::Base

#name, #target

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Guard::Chef::Base

#initialize, #kind, #update

Constructor Details

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

Class Method Details

.accepts?(path, extension) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/guard/chef/data_bag_job.rb', line 11

def self.accepts?(path, extension)
  extension.nil? && path =~ /(rb|json)$/
end

Instance Method Details

#commandObject



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

def command
  "rake databag:upload['#{name}']"
end

#sentinel_reObject



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

def sentinel_re
  /Updated data_bag_item/
end