Method: Puppet::Parser::AST::ResourceParam#evaluate

Defined in:
lib/puppet/parser/ast/resourceparam.rb

#evaluate(scope) ⇒ Object

Return the parameter and the value.



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/puppet/parser/ast/resourceparam.rb', line 18

def evaluate(scope)
  value = @value.safeevaluate(scope)
  Puppet::Parser::Resource::Param.new(
    :name => @param,
    :value => value.nil? ? :undef : value,
    :source => scope.source,
    :line => line,
    :file => file,
    :add => add
  )
end