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.3.0.rc2 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.3.0.rc1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.3.0.pre2 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.3.0.pre1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.2 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.2.rc2 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.2.rc1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.1.rc1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0.rc3 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0.rc2 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0.rc1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0.pre3 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0.pre2 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.1.6 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.2.0.pre1 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.1.5 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.1.5.rc3 lib/kontena/cli/services/stop_command.rb
kontena-cli-1.1.5.rc2 lib/kontena/cli/services/stop_command.rb