Sha256: d92397006c72a3f10ff65b90709d372bde3c688df11bf302e1ab93db23525da9

Contents?: true

Size: 452 Bytes

Versions: 7

Compression:

Stored size: 452 Bytes

Contents

module Rundock
  module Attribute
    class NodeAttribute < Base
      attr_accessor :nodename
      attr_accessor :nodeinfo
      attr_accessor :task_info
      attr_accessor :errexit
      attr_accessor :enable_hooks

      AVAIL_TAKE_OVERS = [
        :task_info,
        :errexit
      ]

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rundock-0.4.10 lib/rundock/attribute/node_attribute.rb
rundock-0.4.8 lib/rundock/attribute/node_attribute.rb
rundock-0.4.7 lib/rundock/attribute/node_attribute.rb
rundock-0.4.6 lib/rundock/attribute/node_attribute.rb
rundock-0.4.4 lib/rundock/attribute/node_attribute.rb
rundock-0.4.3 lib/rundock/attribute/node_attribute.rb
rundock-0.4.2 lib/rundock/attribute/node_attribute.rb