Class: OS::Puppet::Fencing::Blocker
- Inherits:
-
Object
- Object
- OS::Puppet::Fencing::Blocker
- Defined in:
- lib/fencing/config.rb
Instance Attribute Summary collapse
-
#blocking_host_name ⇒ Object
readonly
Returns the value of attribute blocking_host_name.
-
#expected_value ⇒ Object
readonly
Returns the value of attribute expected_value.
-
#fact ⇒ Object
readonly
Returns the value of attribute fact.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Blocker
constructor
A new instance of Blocker.
Constructor Details
#initialize(hash) ⇒ Blocker
Returns a new instance of Blocker.
58 59 60 61 62 |
# File 'lib/fencing/config.rb', line 58 def initialize(hash) @blocking_host_name = hash['blocking_host_name'] @fact = hash['fact'] @expected_value = hash['expected_value'] end |
Instance Attribute Details
#blocking_host_name ⇒ Object (readonly)
Returns the value of attribute blocking_host_name.
56 57 58 |
# File 'lib/fencing/config.rb', line 56 def blocking_host_name @blocking_host_name end |
#expected_value ⇒ Object (readonly)
Returns the value of attribute expected_value.
56 57 58 |
# File 'lib/fencing/config.rb', line 56 def expected_value @expected_value end |
#fact ⇒ Object (readonly)
Returns the value of attribute fact.
56 57 58 |
# File 'lib/fencing/config.rb', line 56 def fact @fact end |