Class: DataBagJob
Instance Attribute Summary
#name, #target
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, #kind, #update
Class Method Details
.accepts?(path, extension) ⇒ 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
#command ⇒ Object
3
4
5
|
# File 'lib/guard/chef/data_bag_job.rb', line 3
def command
"rake databag:upload['#{name}']"
end
|
#sentinel_re ⇒ Object
7
8
9
|
# File 'lib/guard/chef/data_bag_job.rb', line 7
def sentinel_re
/Updated data_bag_item/
end
|