Sha256: 246b170bfef69bac624cf09a31a635d5d5c21b0815c954cea9e0e741b4234510

Contents?: true

Size: 586 Bytes

Versions: 9

Compression:

Stored size: 586 Bytes

Contents

module Rundock
  module Attribute
    class NodeAttribute < Base
      attr_accessor :nodename
      attr_accessor :nodeinfo
      attr_accessor :task_info
      attr_accessor :errexit
      attr_accessor :cwd
      attr_accessor :sudo
      attr_accessor :dry_run
      attr_accessor :hooks

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rundock-1.0.6 lib/rundock/attribute/node_attribute.rb
rundock-1.0.5 lib/rundock/attribute/node_attribute.rb
rundock-1.0.4 lib/rundock/attribute/node_attribute.rb
rundock-1.0.2 lib/rundock/attribute/node_attribute.rb
rundock-1.0.1 lib/rundock/attribute/node_attribute.rb
rundock-1.0.0 lib/rundock/attribute/node_attribute.rb
rundock-0.5.8 lib/rundock/attribute/node_attribute.rb
rundock-0.5.7 lib/rundock/attribute/node_attribute.rb
rundock-0.5.4 lib/rundock/attribute/node_attribute.rb