Class: EnvironmentJob
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/enviroment_job.rb', line 11
def self.accepts?(path, extension)
!! (extension =~ /(rb|json)/)
end
|
Instance Method Details
#command ⇒ Object
3
4
5
|
# File 'lib/guard/chef/enviroment_job.rb', line 3
def command
"knife environment from file -VV '#{target}'"
end
|
#sentinel_re ⇒ Object
7
8
9
|
# File 'lib/guard/chef/enviroment_job.rb', line 7
def sentinel_re
/Updated Environment #{name}/
end
|