class EcomDev::ChefSpec::Resource::Matcher::DSL

Public Class Methods

load(filename) click to toggle source
# 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

Public Instance Methods

matcher(resource, action) click to toggle source
# File lib/ecomdev/chefspec/resource/matcher/dsl.rb, line 6
def matcher(resource, action)
  EcomDev::ChefSpec::Resource::Matcher.matcher(resource, action)
end
runner(resource) click to toggle source
# File lib/ecomdev/chefspec/resource/matcher/dsl.rb, line 10
def runner(resource)
  EcomDev::ChefSpec::Resource::Matcher.runner(resource)
end