Class: Kontena::Plugin::Upcloud::Nodes::RestartCommand

Inherits:
Command
  • Object
show all
Includes:
Cli::Common, Cli::GridOptions
Defined in:
lib/kontena/plugin/upcloud/nodes/restart_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



10
11
12
13
14
15
16
17
18
# File 'lib/kontena/plugin/upcloud/nodes/restart_command.rb', line 10

def execute
  require_api_url
  require_current_grid

  require 'kontena/machine/upcloud'

  restarter = Kontena::Machine::Upcloud::NodeRestarter.new(username, password)
  restarter.run!(name)
end