Sha256: f896d5e878e71a74d24db0f384786a92b1526fd610b1429b26b0f590203235fa

Contents?: true

Size: 546 Bytes

Versions: 44

Compression:

Stored size: 546 Bytes

Contents

require_relative 'common'

module Kontena::Cli::Stacks
  class StopCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Common

    banner "Stops all services of a stack that has been installed in a grid on Kontena Master"

    parameter "NAME", "Stack name"

    requires_current_master
    requires_current_master_token

    def execute
      spinner "Sending stop signal for stack services" do
        client.post("stacks/#{current_grid}/#{name}/stop", {})
      end
    end

  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
kontena-cli-1.4.3 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.3.rc1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.2 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.2.rc1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.2.pre1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.1.rc1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.3.5 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/stacks/stop_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/stacks/stop_command.rb