* Spaces around `|` between name and id. * `Get program help` -> `Get command help` * `private-subnet-id` -> `ps-id`
14 lines
310 B
Ruby
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
|