Sha256: 78345436240ced4c8c8a5524a4b7c69a4c20a98a502e323b93e49920ce5bd7fb

Contents?: true

Size: 445 Bytes

Versions: 119

Compression:

Stored size: 445 Bytes

Contents

require_relative 'services_helper'

module Kontena::Cli::Services
  class StopCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include ServicesHelper

    parameter "NAME", "Service name"

    def execute
      require_api_url
      token = require_token
      spinner "Sending stop signal to #{name.colorize(:cyan)} service " do
        stop_service(token, name)
      end
    end
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

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