Class: EcomDev::ChefSpec::Resource::Matcher::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/ecomdev/chefspec/resource/matcher/dsl.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load(filename) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/ecomdev/chefspec/resource/matcher/dsl.rb', line 14

def self.load(filename)
  dsl = new
  content = File.read(filename)
  content.taint
  dsl.instance_eval(content, filename)
  dsl
end

Instance Method Details

#matcher(resource, action) ⇒ Object



6
7
8
# File 'lib/ecomdev/chefspec/resource/matcher/dsl.rb', line 6

def matcher(resource, action)
  EcomDev::ChefSpec::Resource::Matcher.matcher(resource, action)
end

#runner(resource) ⇒ Object



10
11
12
# File 'lib/ecomdev/chefspec/resource/matcher/dsl.rb', line 10

def runner(resource)
  EcomDev::ChefSpec::Resource::Matcher.runner(resource)
end