Class: Puppet::Status
- Extended by:
- Indirector
- Defined in:
- lib/puppet/status.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status = nil) ⇒ Status
constructor
A new instance of Status.
- #name ⇒ Object
- #name=(name) ⇒ Object
- #to_pson ⇒ 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
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/puppet/status.rb', line 7 def status @status end |
Class Method Details
.from_pson(pson) ⇒ Object
17 18 19 |
# File 'lib/puppet/status.rb', line 17 def self.from_pson( pson ) self.new( pson ) end |
Instance Method Details
#name ⇒ Object
21 22 23 |
# File 'lib/puppet/status.rb', line 21 def name "status" end |
#name=(name) ⇒ Object
25 26 27 |
# File 'lib/puppet/status.rb', line 25 def name=(name) # NOOP end |
#to_pson ⇒ Object
13 14 15 |
# File 'lib/puppet/status.rb', line 13 def to_pson @status.to_pson end |