module ChefSpec

def define_matcher(resource_name)

Returns:
  • (self) -

Parameters:
  • resource_name (Symbol) --
def define_matcher(resource_name)
  matchers[resource_name.to_sym] = Proc.new do |identity|
    find_resource(resource_name, identity)
  end
  self
end

def matchers

Returns:
  • (Hash) -
def matchers
  @matchers ||= {}
end

def root

Returns:
  • (Pathname) -
def root
  @root ||= Pathname.new(File.expand_path("..", __dir__))
end