Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.472 kb
module RSpec::Puppet
module Support
def build_catalog nodename, facts_val
node_obj = Puppet::Node.new(nodename)
node_obj.merge(facts_val)
# trying to be compatible with 2.7 as well as 2.6
if Puppet::Resource::Catalog.respond_to? :find
Puppet::Resource::Catalog.find(node_obj.name, :use_node => node_obj)
else
Puppet::Resource::Catalog.indirection.find(node_obj.name, :use_node => node_obj)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.