Class: OS::Puppet::Fencing::Blocker

Inherits:
Object
  • Object
show all
Defined in:
lib/fencing/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_valueObject (readonly)

Returns the value of attribute expected_value.



56
57
58
# File 'lib/fencing/config.rb', line 56

def expected_value
  @expected_value
end

#factObject (readonly)

Returns the value of attribute fact.



56
57
58
# File 'lib/fencing/config.rb', line 56

def fact
  @fact
end