Sha256: 817fbd2b3f5b90c83e7a3a8a33b3706269b27da0408722b615052c75aca03764
Contents?: true
Size: 597 Bytes
Versions: 45
Compression:
Stored size: 597 Bytes
Contents
require 'puppet/file_collection/lookup' require 'puppet/parser/yaml_trimmer' # The parameters we stick in Resources. class Puppet::Parser::Resource::Param attr_accessor :name, :value, :source, :add include Puppet::Util include Puppet::Util::Errors include Puppet::Util::MethodHelper include Puppet::FileCollection::Lookup include Puppet::Parser::YamlTrimmer def initialize(hash) set_options(hash) requiredopts(:name, :value) @name = symbolize(@name) end def line_to_i line ? Integer(line) : nil end def to_s "#{self.name} => #{self.value}" end end
Version data entries
45 entries across 45 versions & 3 rubygems