Sha256: 2a0313b255df8bfd17eeb6922213b13207437fddac91f1c08b95c318a1e280d4

Contents?: true

Size: 543 Bytes

Versions: 32

Compression:

Stored size: 543 Bytes

Contents

require_relative 'services_helper'

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

    parameter "NAME", "Service name"

    def execute
       puts "DEPRECATION WARNING: Support for 'kontena service delete' will be dropped. Use 'kontena service remove' instead.".colorize(:red)
      require_api_url
      token = require_token

      result = client(token).delete("services/#{parse_service_id(name)}")
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
kontena-cli-0.15.5 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.5.rc2 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.5.rc1 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.4 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.4.rc2 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.4.rc1 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.4.pre1 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.3 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.2 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.1 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.0 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.0.rc3 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.0.rc2 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.15.0.rc1 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.14.7 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.14.6 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.14.5 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.14.4 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.14.3 lib/kontena/cli/services/delete_command.rb
kontena-cli-0.14.2 lib/kontena/cli/services/delete_command.rb