Sha256: b3f3aa6a634f2416f1ea09f7f1f01258df5f1a4d143a4b85d1ca8d26a6099f84

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

module Souls
  module Gcloud
    module Sql
      class << self
        def create_instance(instance_name: "souls-db", root_pass: "Postgre123!", zone: "asia-northeast1-b")
          puts(
            "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

5 entries across 5 versions & 1 rubygems

Version Path
souls-0.32.8 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.7 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.6 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.5 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.4 lib/souls/cli/gcloud/sql/sql.rb