Class: Puppet::Status
Constant Summary
Constants included
from Indirector
Indirector::BadNameRegexp
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Indirector
configure_routes, indirects
Constructor Details
#initialize(status = nil) ⇒ Status
Returns a new instance of Status.
9
10
11
|
# File 'lib/vendor/puppet/status.rb', line 9
def initialize( status = nil )
@status = status || {"is_alive" => true}
end
|
Instance Attribute Details
Returns the value of attribute status.
7
8
9
|
# File 'lib/vendor/puppet/status.rb', line 7
def status
@status
end
|
Class Method Details
.from_pson(pson) ⇒ Object
17
18
19
|
# File 'lib/vendor/puppet/status.rb', line 17
def self.from_pson( pson )
self.new( pson )
end
|
Instance Method Details
21
22
23
|
# File 'lib/vendor/puppet/status.rb', line 21
def name
"status"
end
|
#name=(name) ⇒ Object
25
26
27
|
# File 'lib/vendor/puppet/status.rb', line 25
def name=(name)
end
|
#to_pson(*args) ⇒ Object
13
14
15
|
# File 'lib/vendor/puppet/status.rb', line 13
def to_pson(*args)
@status.to_pson
end
|