Sha256: 4b71bdc2edddc84f7b9ca6c6316efb5fb87ca9187b1b96f7f8dea2710f9502dc

Contents?: true

Size: 440 Bytes

Versions: 21

Compression:

Stored size: 440 Bytes

Contents

require_relative 'common'

module Kontena::Cli::Stacks
  class DeployCommand < Kontena::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

21 entries across 21 versions & 1 rubygems

Version Path
kontena-cli-0.16.3 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.3.rc1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.2.rc1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.1.rc3 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.1.rc2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.1.rc1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.rc3 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.rc2 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.rc1 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre9 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre8 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre7 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre6 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre5 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre4 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre3 lib/kontena/cli/stacks/deploy_command.rb
kontena-cli-0.16.0.pre2 lib/kontena/cli/stacks/deploy_command.rb