Sha256: 5c5fc2a6c92664d79ca213d462d723b35db5d0b70f014bf139897c34fc55ce4b

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require_relative '../container_command'

module Dru
  module Commands
    class Runner < Dru::ContainerCommand
      def execute(input: $stdin, output: $stdout)
        run_docker_compose_command('run', '--rm', '--entrypoint', 'sh -c', container, command, tty: true)
      end

      private

      def command
        @command.join(' ')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dru-0.6.0 lib/dru/commands/runner.rb
dru-0.5.2 lib/dru/commands/runner.rb
dru-0.5.1 lib/dru/commands/runner.rb
dru-0.5.0 lib/dru/commands/runner.rb
dru-0.4.0 lib/dru/commands/runner.rb
dru-0.3.1 lib/dru/commands/runner.rb