Class: Puppet::Status
- Extended by:
- Indirector
- Defined in:
- lib/puppet/status.rb
Constant Summary
Constants included from Indirector
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status = nil) ⇒ Status
constructor
A new instance of Status.
- #name ⇒ Object
- #name=(name) ⇒ Object
- #to_data_hash ⇒ Object
- #version ⇒ Object
- #version=(version) ⇒ Object
Methods included from Indirector
Constructor Details
#initialize(status = nil) ⇒ Status
Returns a new instance of Status.
9 10 11 |
# File 'lib/puppet/status.rb', line 9 def initialize( status = nil ) @status = status || {"is_alive" => true} end |
Instance Attribute Details
Class Method Details
.from_data_hash(data) ⇒ Object
17 18 19 20 21 22 23 |
# 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 |