Class: EnvironmentJob

Inherits:
Guard::Chef::Base show all
Defined in:
lib/guard/chef/enviroment_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/enviroment_job.rb', line 11

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

Instance Method Details

#commandObject



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

def command
  "knife environment from file -VV '#{target}'"
end

#sentinel_reObject



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

def sentinel_re
  /Updated Environment #{name}/
end