Sha256: 6aaa05d26c66dc5c331d6742f4ed155169540d5cbfdc0ff014fb5ddfbbe5d88f

Contents?: true

Size: 438 Bytes

Versions: 14

Compression:

Stored size: 438 Bytes

Contents

require_relative 'common'

module Kontena::Cli::Stacks
  class DeployCommand < Clamp::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Common

    parameter "NAME", "Stack name"

    def execute
      require_api_url
      require_token

      deploy_stack(name)
    end

    private


    def deploy_stack
      client(token).post("stacks/#{current_grid}/#{name}/deploy", {})
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kontena-cli-0.15.5 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.5.rc2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.5.rc1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.4 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.4.rc2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.4.rc1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.4.pre1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.3 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.0 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.0.rc3 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.0.rc2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.15.0.rc1 lib/kontena/cli/stacks/deploy_command.rb