ubicloud/cli-commands/pg/post/create-read-replica.rb
2025-08-26 02:42:03 +09:00

14 lines
370 B
Ruby

# frozen_string_literal: true
UbiCli.on("pg").run_on("create-read-replica") do
desc "Create a read replica for a PostgreSQL database"
banner "ubi pg (location/pg-name | pg-id) create-read-replica name"
args 1
run do |name|
id = sdk_object.create_read_replica(name).id
response("Read replica for PostgreSQL database created with id: #{id}")
end
end