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

Version Path
puppet-2.6.18 lib/puppet/parser/resource/param.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/parser/resource/param.rb
puppet-2.7.19 lib/puppet/parser/resource/param.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/parser/resource/param.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
puppet-2.7.18 lib/puppet/parser/resource/param.rb
puppet-2.6.17 lib/puppet/parser/resource/param.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
puppet-2.7.17 lib/puppet/parser/resource/param.rb
puppet-2.7.16 lib/puppet/parser/resource/param.rb
puppet-2.7.14 lib/puppet/parser/resource/param.rb
puppet-2.6.16 lib/puppet/parser/resource/param.rb
puppet-2.7.13 lib/puppet/parser/resource/param.rb
puppet-2.6.15 lib/puppet/parser/resource/param.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/parser/resource/param.rb
puppet-2.7.12 lib/puppet/parser/resource/param.rb