Sha256: 61e26566199bca81947af86603b86cb31ae96c254a46608ea185c4652637f0de
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
module PuppetRepl module Support module Node # creates a node object def create_node options = {} options[:parameters] = default_facts.values options[:facts] = default_facts options[:classes] = [] options[:environment] = puppet_environment Puppet::Node.new(default_facts.values['fqdn'], options) end # @return [node] puppet node object def node @node ||= create_node end def set_node(value) @node = value end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-repl-0.1.1 | lib/puppet-repl/support/node.rb |
puppet-repl-0.1.0 | lib/puppet-repl/support/node.rb |