Sha256: 4e4c2b6f5e1c0b99cdfbd0a3677aa189cd0560e024f3291d4942214ed74bad99

Contents?: true

Size: 579 Bytes

Versions: 8

Compression:

Stored size: 579 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 = %i[
        task_info
        errexit
        cwd
        sudo
        dry_run
      ]

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rundock-1.1.5 lib/rundock/attribute/node_attribute.rb
rundock-1.1.4 lib/rundock/attribute/node_attribute.rb
rundock-1.1.3 lib/rundock/attribute/node_attribute.rb
rundock-1.1.2 lib/rundock/attribute/node_attribute.rb
rundock-1.1.1 lib/rundock/attribute/node_attribute.rb
rundock-1.1.0 lib/rundock/attribute/node_attribute.rb
rundock-1.0.8 lib/rundock/attribute/node_attribute.rb
rundock-1.0.7 lib/rundock/attribute/node_attribute.rb