# File lib/puppet/status.rb, line 30 def name "status" end
# File lib/puppet/status.rb, line 34 def name=(name) # NOOP end
# File lib/puppet/status.rb, line 13 def to_data_hash @status end
# File lib/puppet/status.rb, line 38 def version @status['version'] end
# File lib/puppet/status.rb, line 42 def version=(version) @status['version'] = version end
# File lib/puppet/status.rb, line 17 def self.from_data_hash(data) if data.include?('status') self.new(data['status']) else self.new(data) end end
# File lib/puppet/status.rb, line 25 def self.from_pson(pson) Puppet.deprecation_warning("from_pson is being removed in favour of from_data_hash.") self.from_data_hash(pson) end
# File lib/puppet/status.rb, line 9 def initialize( status = nil ) @status = status || {"is_alive" => true} end