Sha256: 345a6c7f27eae87d25c413c701b8be8dc12865da9a9ef20e08cb329c28b54021
Contents?: true
Size: 485 Bytes
Versions: 12
Compression:
Stored size: 485 Bytes
Contents
require 'puppet/indirector' class Puppet::Status extend Puppet::Indirector indirects :status, :terminus_class => :local attr :status, true def initialize( status = nil ) @status = status || {"is_alive" => true} end def to_pson(*args) @status.to_pson end def self.from_pson(pson) if pson.include?('status') self.new(pson['status']) else self.new(pson) end end def name "status" end def name=(name) # NOOP end end
Version data entries
12 entries across 12 versions & 1 rubygems