Class: Kontena::Plugin::Packet::Nodes::RestartCommand
- Inherits:
-
Command
- Object
- Command
- Kontena::Plugin::Packet::Nodes::RestartCommand
- Includes:
- Cli::Common, Cli::GridOptions
- Defined in:
- lib/kontena/plugin/packet/nodes/restart_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
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 |