class Kontena::Cli::Services::RestartCommand

Public Instance Methods

execute() click to toggle source
# File lib/kontena/cli/services/restart_command.rb, line 11
def execute
  require_api_url
  token = require_token
  spinner "Sending restart signal to service #{pastel.cyan(name)} " do
    restart_service(token, name)
  end
end