Class: Kontena::Plugin::Packet::Nodes::RestartCommand

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

Instance Method Summary collapse

Instance Method Details

#executeObject



10
11
12
13
14
# File 'lib/kontena/plugin/packet/nodes/restart_command.rb', line 10

def execute
  require 'kontena/machine/packet'
  restarter = Kontena::Machine::Packet::NodeRestarter.new(token)
  restarter.run!(project, name)
end