Sha256: 4753e9e6f839609c23ec16400e9974e667103dd4da9899856232c263b1c70aec

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

module Percheron
  module Commands
    class Shell < Abstract

      parameter('STACK_NAME', 'stack name', required: true)
      parameter('CONTAINER_NAME', 'container name', required: true)
      option('--shell', 'SHELL', 'Shell to use', default: Percheron::Actions::Shell::DEFAULT_SHELL)

      def execute
        super
        stack.shell!(container_name, shell: shell)
      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.4 lib/percheron/commands/shell.rb
percheron-0.7.3 lib/percheron/commands/shell.rb