Sha256: d0e0f0dc57845c0451889e4bb2ab0231f5e8882c4fcb9e6ceaca88098a7b6280
Contents?: true
Size: 785 Bytes
Versions: 57
Compression:
Stored size: 785 Bytes
Contents
require 'puppet/indirector' require 'puppet/util/pson' class Puppet::IndirectorTesting extend Puppet::Indirector indirects :indirector_testing # We should have some way to identify if we got a valid object back with the # current values, no? attr_accessor :value alias_method :name, :value alias_method :name=, :value= def initialize(value) self.value = value end def self.from_raw(raw) new(raw) end PSON.register_document_type('IndirectorTesting',self) def self.from_data_hash(data) new(data['value']) end def to_data_hash { 'value' => value } end def to_pson { 'document_type' => 'IndirectorTesting', 'data' => self.to_data_hash, 'metadata' => { 'api_version' => 1 } }.to_pson end end
Version data entries
57 entries across 57 versions & 1 rubygems