Sha256: a6cdd5445120137aa593a95da4693fce27a33617be72f6f5e23f9203fb7f5245

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

module Percheron
  module Commands
    class Shell < Abstract

      parameter('STACK_NAME', 'stack name', required: true)
      parameter('CONTAINER_NAME', 'container name', required: true)
      option('--command', 'COMMAND', 'command', default: Percheron::Actions::Shell::DEFAULT_COMMAND)

      def execute
        super
        stack.shell!(container_name, command: command)
      rescue Errors::DockerClientInvalid => e
        signal_usage_error(e.message)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.7.6 lib/percheron/commands/shell.rb
percheron-0.7.5 lib/percheron/commands/shell.rb