Sha256: 15749f10db446f2aafcdf0a74beb988619823b26196ab3d6cbeb80555ca70fd4

Contents?: true

Size: 454 Bytes

Versions: 119

Compression:

Stored size: 454 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 #{name.colorize(:cyan)} " do
        restart_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/restart_command.rb
kontena-cli-1.4.3.rc1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.2 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.2.rc1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.2.pre1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.1.rc1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.3.5 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/services/restart_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/services/restart_command.rb