Sha256: cb987f6d7a11c4cf7dc3e308d33d35ad4913339584025d33266bad6b736ed4ca
Contents?: true
Size: 841 Bytes
Versions: 96
Compression:
Stored size: 841 Bytes
Contents
# The AST object for the parameters inside resource expressions # class Puppet::Parser::AST::ResourceParam < Puppet::Parser::AST::Branch attr_accessor :value, :param, :add def initialize(argshash) Puppet.warn_once('deprecation', 'AST::ResourceParam', 'Use of Puppet::Parser::AST::ResourceParam is deprecated and not fully functional') super(argshash) end def each [@param, @value].each { |child| yield child } end # Return the parameter and the value. def evaluate(scope) value = @value.safeevaluate(scope) return Puppet::Parser::Resource::Param.new( :name => @param, :value => value.nil? ? :undef : value, :source => scope.source, :line => self.line, :file => self.file, :add => self.add ) end def to_s "#{@param} => #{@value.to_s}" end end
Version data entries
96 entries across 96 versions & 2 rubygems