Files
ubicloud/cli-commands/vm/post/restart.rb
Jeremy Evans 9fc326c965 Minor CLI help improvements
* Spaces around `|` between name and id.

* `Get program help` -> `Get command help`

* `private-subnet-id` -> `ps-id`
2025-03-13 09:20:15 -07:00

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