Files
ubicloud/cli-commands/pg/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
310 B
Ruby

# frozen_string_literal: true
UbiCli.on("pg").run_on("restart") do
desc "Restart a PostgreSQL database cluster"
banner "ubi pg (location/pg-name | pg-id) restart"
run do
post(pg_path("/restart")) do |data|
["Scheduled restart of PostgreSQL database with id #{data["id"]}"]
end
end
end