* Spaces around `|` between name and id. * `Get program help` -> `Get command help` * `private-subnet-id` -> `ps-id`
14 lines
281 B
Ruby
14 lines
281 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiCli.on("vm").run_on("restart") do
|
|
desc "Restart a virtual machine"
|
|
|
|
banner "ubi vm (location/vm-name | vm-id) restart"
|
|
|
|
run do
|
|
post(vm_path("/restart")) do |data|
|
|
["Scheduled restart of VM with id #{data["id"]}"]
|
|
end
|
|
end
|
|
end
|