Sha256: 750129b7a346a5dbe36700b03874b5738936467745c0ad5e1835a66b729fff68

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 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
      attr_accessor :dry_run

      AVAIL_TAKE_OVERS = [
        :task_info,
        :errexit,
        :dry_run
      ]

      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

5 entries across 5 versions & 1 rubygems

Version Path
rundock-0.4.15 lib/rundock/attribute/node_attribute.rb
rundock-0.4.14 lib/rundock/attribute/node_attribute.rb
rundock-0.4.13 lib/rundock/attribute/node_attribute.rb
rundock-0.4.12 lib/rundock/attribute/node_attribute.rb
rundock-0.4.11 lib/rundock/attribute/node_attribute.rb