Class: Rundock::Attribute::NodeAttribute
- Defined in:
- lib/rundock/attribute/node_attribute.rb
Constant Summary collapse
- AVAIL_TAKE_OVERS =
[ :task_info, :errexit, :dry_run ]
Instance Attribute Summary collapse
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#enable_hooks ⇒ Object
Returns the value of attribute enable_hooks.
-
#errexit ⇒ Object
Returns the value of attribute errexit.
-
#nodeinfo ⇒ Object
Returns the value of attribute nodeinfo.
-
#nodename ⇒ Object
Returns the value of attribute nodename.
-
#task_info ⇒ Object
Returns the value of attribute task_info.
Instance Method Summary collapse
Methods inherited from Base
attr_accessor, #define_attr, #initialize, #list, list
Constructor Details
This class inherits a constructor from Rundock::Attribute::Base
Instance Attribute Details
#dry_run ⇒ Object
Returns the value of attribute dry_run.
9 10 11 |
# File 'lib/rundock/attribute/node_attribute.rb', line 9 def dry_run @dry_run end |
#enable_hooks ⇒ Object
Returns the value of attribute enable_hooks.
8 9 10 |
# File 'lib/rundock/attribute/node_attribute.rb', line 8 def enable_hooks @enable_hooks end |
#errexit ⇒ Object
Returns the value of attribute errexit.
7 8 9 |
# File 'lib/rundock/attribute/node_attribute.rb', line 7 def errexit @errexit end |
#nodeinfo ⇒ Object
Returns the value of attribute nodeinfo.
5 6 7 |
# File 'lib/rundock/attribute/node_attribute.rb', line 5 def nodeinfo @nodeinfo end |
#nodename ⇒ Object
Returns the value of attribute nodename.
4 5 6 |
# File 'lib/rundock/attribute/node_attribute.rb', line 4 def nodename @nodename end |
#task_info ⇒ Object
Returns the value of attribute task_info.
6 7 8 |
# File 'lib/rundock/attribute/node_attribute.rb', line 6 def task_info @task_info end |
Instance Method Details
#finalize_node ⇒ Object
17 18 19 20 21 |
# File 'lib/rundock/attribute/node_attribute.rb', line 17 def finalize_node list.each do |k, _v| define_attr(k, nil) unless AVAIL_TAKE_OVERS.include?(k) end end |