Sha256: a10414c5bb0d0025dfd6bc4269d582875e933d17acb10be1bab897d643c7b1a0
Contents?: true
Size: 657 Bytes
Versions: 63
Compression:
Stored size: 657 Bytes
Contents
require 'puppet/parser/ast/branch' class Puppet::Parser::AST # A statement syntactically similar to an ResourceDef, but uses a # capitalized object type and cannot have a name. class ResourceDefaults < AST::Branch attr_accessor :type, :parameters associates_doc # As opposed to ResourceDef, this stores each default for the given # object type. def evaluate(scope) # Use a resource reference to canonize the type ref = Puppet::Resource.new(@type, "whatever") type = ref.type params = @parameters.safeevaluate(scope) parsewrap do scope.setdefaults(type, params) end end end end
Version data entries
63 entries across 63 versions & 4 rubygems