Sha256: ab76aed8a8d79808240b583281c6c52a5e1640c36e6132a2e9f8dbf394c32efe

Contents?: true

Size: 459 Bytes

Versions: 38

Compression:

Stored size: 459 Bytes

Contents

module Rundock
  module Operation
    class Base
      OperationNotImplementedError = Class.new(NotImplementedError)

      attr_reader :instruction
      attr_reader :attributes

      def initialize(instruction, attributes)
        @instruction = instruction
        @attributes = attributes
        @attributes = {} unless attributes
      end

      def run(backend, attributes = {})
        raise OperationNotImplementedError
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
rundock-0.4.4 lib/rundock/operation/base.rb
rundock-0.4.3 lib/rundock/operation/base.rb
rundock-0.4.2 lib/rundock/operation/base.rb
rundock-0.4.1 lib/rundock/operation/base.rb
rundock-0.4.0 lib/rundock/operation/base.rb
rundock-0.3.0 lib/rundock/operation/base.rb
rundock-0.2.11 lib/rundock/operation/base.rb
rundock-0.2.10 lib/rundock/operation/base.rb
rundock-0.2.9 lib/rundock/operation/base.rb
rundock-0.2.8 lib/rundock/operation/base.rb
rundock-0.2.7 lib/rundock/operation/base.rb
rundock-0.2.6 lib/rundock/operation/base.rb
rundock-0.2.5 lib/rundock/operation/base.rb
rundock-0.2.4 lib/rundock/operation/base.rb
rundock-0.2.3 lib/rundock/operation/base.rb
rundock-0.2.2 lib/rundock/operation/base.rb
rundock-0.2.0 lib/rundock/operation/base.rb
rundock-0.1.0 lib/rundock/operation/base.rb