This already existed in the sdk, since it was supported in pg show. This just provides an easier approach for downloading the certificates to a file with shell redirection, as using pg show -f ca-certificates will include an extra header.
12 lines
256 B
Ruby
12 lines
256 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiCli.on("pg").run_on("ca-certificates") do
|
|
desc "Print CA certificates for a PostgreSQL database"
|
|
|
|
banner "ubi pg (location/pg-name | pg-id) ca-certificates"
|
|
|
|
run do
|
|
response(sdk_object.ca_certificates)
|
|
end
|
|
end
|