Class: Rundock::Attribute::NodeAttribute
- Defined in:
- lib/rundock/attribute/node_attribute.rb
Constant Summary collapse
- AVAIL_TAKE_OVERS =
%i[ task_info errexit cwd sudo dry_run ]
Instance Attribute Summary collapse
-
#cwd ⇒ Object
Returns the value of attribute cwd.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#errexit ⇒ Object
Returns the value of attribute errexit.
-
#filtered_tasks ⇒ Object
Returns the value of attribute filtered_tasks.
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#nodeinfo ⇒ Object
Returns the value of attribute nodeinfo.
-
#nodename ⇒ Object
Returns the value of attribute nodename.
-
#sudo ⇒ Object
Returns the value of attribute sudo.
-
#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
#cwd ⇒ Object
Returns the value of attribute cwd.
9 10 11 |
# File 'lib/rundock/attribute/node_attribute.rb', line 9 def cwd @cwd end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
11 12 13 |
# File 'lib/rundock/attribute/node_attribute.rb', line 11 def dry_run @dry_run end |
#errexit ⇒ Object
Returns the value of attribute errexit.
8 9 10 |
# File 'lib/rundock/attribute/node_attribute.rb', line 8 def errexit @errexit end |
#filtered_tasks ⇒ Object
Returns the value of attribute filtered_tasks.
7 8 9 |
# File 'lib/rundock/attribute/node_attribute.rb', line 7 def filtered_tasks @filtered_tasks end |
#hooks ⇒ Object
Returns the value of attribute hooks.
12 13 14 |
# File 'lib/rundock/attribute/node_attribute.rb', line 12 def hooks @hooks 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 |
#sudo ⇒ Object
Returns the value of attribute sudo.
10 11 12 |
# File 'lib/rundock/attribute/node_attribute.rb', line 10 def sudo @sudo 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
#init_except_take_over_state ⇒ Object
22 23 24 25 26 |
# File 'lib/rundock/attribute/node_attribute.rb', line 22 def init_except_take_over_state list.each_key do |k| define_attr(k, nil) unless AVAIL_TAKE_OVERS.include?(k) end end |