Sha256: 1fa954a3c63f14247b09eea026a31fe5d65b4a5a5c5b69cda03cc736a7497e1a

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

module Rundock
  module Operation
    class Command < Base
      def run(backend, attributes = {})
        @instruction.each do |i|
          if i.is_a?(Hash)
            attributes.merge!(i)
            next
          end

          logging(i, 'info')

          backend.run_commands(
            assign_args(i, attributes[:task_args]), attributes
          )
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rundock-1.2.1 lib/rundock/operation/command.rb
rundock-1.2.0 lib/rundock/operation/command.rb
rundock-1.1.7 lib/rundock/operation/command.rb
rundock-1.1.6 lib/rundock/operation/command.rb
rundock-1.1.5 lib/rundock/operation/command.rb
rundock-1.1.4 lib/rundock/operation/command.rb
rundock-1.1.3 lib/rundock/operation/command.rb
rundock-1.1.2 lib/rundock/operation/command.rb
rundock-1.1.1 lib/rundock/operation/command.rb