Sha256: f1eaa151afad0421485bc658083916c84f15dd11f12b1200d2f1279e75b5c00f

Contents?: true

Size: 477 Bytes

Versions: 10

Compression:

Stored size: 477 Bytes

Contents

module Percheron
  module Commands
    class Shell < Abstract

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
percheron-0.7.16 lib/percheron/commands/shell.rb
percheron-0.7.15 lib/percheron/commands/shell.rb
percheron-0.7.14 lib/percheron/commands/shell.rb
percheron-0.7.13 lib/percheron/commands/shell.rb
percheron-0.7.12 lib/percheron/commands/shell.rb
percheron-0.7.11 lib/percheron/commands/shell.rb
percheron-0.7.10 lib/percheron/commands/shell.rb
percheron-0.7.9 lib/percheron/commands/shell.rb
percheron-0.7.8 lib/percheron/commands/shell.rb
percheron-0.7.7 lib/percheron/commands/shell.rb