Sha256: f29dc35a89e9366cc9676914eac52ed82be78ad1f89bd4c774b14e251e711089
Contents?: true
Size: 556 Bytes
Versions: 29
Compression:
Stored size: 556 Bytes
Contents
module Souls module Gcloud module Sql class << self def create_instance(instance_name: "", root_pass: "Postgre123!", zone: "asia-northeast1-b") instance_name = "#{Souls.configuration.app}-db" if instance_name.blank? system( "gcloud sql instances create #{instance_name} \ --database-version=POSTGRES_13 --cpu=2 --memory=7680MB --zone=#{zone} \ --root-password='#{root_pass}' --database-flags cloudsql.iam_authentication=on" ) end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems