Method: Puppet::Settings::ChainedValues#interpolate
- Defined in:
- lib/puppet/settings.rb
#interpolate(name) ⇒ Object
Lookup the interpolated value. All instances of ‘$name` in the value will be replaced by performing a lookup of `name` and substituting the text for `$name` in the original value. This interpolation is only performed if the looked up value is a String.
1462 1463 1464 1465 1466 1467 1468 1469 |
# File 'lib/puppet/settings.rb', line 1462 def interpolate(name) setting = @defaults[name] return nil unless setting lookup_and_convert(name) do |val| setting.munge(val) end end |