Sha256: c1cdba25e998d1bee399c2eeb62e8c4ca6a29210b9a36cb2b4f3b54969a3843f

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

require_relative 'services_helper'

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

    parameter "NAME", "Service name"

    def execute
      require_api_url
      token = require_token
      stop_service(token, name)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kontena-cli-0.11.7 lib/kontena/cli/services/stop_command.rb
kontena-cli-0.11.6 lib/kontena/cli/services/stop_command.rb
kontena-cli-0.11.5 lib/kontena/cli/services/stop_command.rb
kontena-cli-0.11.4 lib/kontena/cli/services/stop_command.rb