Class: Rundock::Attribute::NodeAttribute

Inherits:
Base show all
Defined in:
lib/rundock/attribute/node_attribute.rb

Constant Summary collapse

AVAIL_TAKE_OVERS =
[
  :task_info,
  :errexit
]

Instance Attribute Summary collapse

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

#errexitObject

Returns the value of attribute errexit.



8
9
10
# File 'lib/rundock/attribute/node_attribute.rb', line 8

def errexit
  @errexit
end

#nodeObject

Returns the value of attribute node.



4
5
6
# File 'lib/rundock/attribute/node_attribute.rb', line 4

def node
  @node
end

#nodeinfoObject

Returns the value of attribute nodeinfo.



6
7
8
# File 'lib/rundock/attribute/node_attribute.rb', line 6

def nodeinfo
  @nodeinfo
end

#nodenameObject

Returns the value of attribute nodename.



5
6
7
# File 'lib/rundock/attribute/node_attribute.rb', line 5

def nodename
  @nodename
end

#task_infoObject

Returns the value of attribute task_info.



7
8
9
# File 'lib/rundock/attribute/node_attribute.rb', line 7

def task_info
  @task_info
end

Instance Method Details

#finalize_nodeObject



15
16
17
18
19
# File 'lib/rundock/attribute/node_attribute.rb', line 15

def finalize_node
  list.each do |k, _v|
    define_attr(k, nil) unless AVAIL_TAKE_OVERS.include?(k)
  end
end