Sha256: 8149d25273c3f83748dc018ad787adce7966a65c6d214b36c1caf152e7772b47

Contents?: true

Size: 451 Bytes

Versions: 34

Compression:

Stored size: 451 Bytes

Contents

require_relative 'services_helper'

module Kontena::Cli::Services
  class RestartCommand < 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 restart signal to service #{pastel.cyan(name)} " do
        restart_service(token, name)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/services/restart_command.rb
krates-1.7.10 lib/kontena/cli/services/restart_command.rb
krates-1.7.9 lib/kontena/cli/services/restart_command.rb
krates-1.7.8 lib/kontena/cli/services/restart_command.rb
krates-1.7.7 lib/kontena/cli/services/restart_command.rb
krates-1.7.6 lib/kontena/cli/services/restart_command.rb
krates-1.7.5 lib/kontena/cli/services/restart_command.rb
krates-1.7.4 lib/kontena/cli/services/restart_command.rb
krates-1.7.3 lib/kontena/cli/services/restart_command.rb
krates-1.7.2 lib/kontena/cli/services/restart_command.rb
krates-1.7.1 lib/kontena/cli/services/restart_command.rb
krates-1.7.0 lib/kontena/cli/services/restart_command.rb
krates-1.6.9 lib/kontena/cli/services/restart_command.rb
krates-1.6.8 lib/kontena/cli/services/restart_command.rb
krates-1.6.7 lib/kontena/cli/services/restart_command.rb
krates-1.6.6 lib/kontena/cli/services/restart_command.rb
krates-1.6.5 lib/kontena/cli/services/restart_command.rb
krates-1.6.4 lib/kontena/cli/services/restart_command.rb
krates-1.6.3 lib/kontena/cli/services/restart_command.rb
krates-1.6.2 lib/kontena/cli/services/restart_command.rb