Sha256: 9a6ebc871152cf275121219c631d038ddf0c5a63401407f09f0e49ccce7dc1a5

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 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)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.7.1 lib/percheron/commands/shell.rb
percheron-0.7.0 lib/percheron/commands/shell.rb