Sha256: d54807e84bb4fa95368c7326d0296f1fd50ee70387247a1578f51ee0040f8744

Contents?: true

Size: 554 Bytes

Versions: 21

Compression:

Stored size: 554 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?
          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

21 entries across 21 versions & 1 rubygems

Version Path
souls-0.33.10 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.9 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.8 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.7 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.6 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.5 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.4 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.3 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.2 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.1 lib/souls/cli/gcloud/sql/index.rb
souls-0.33.0 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.18 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.17 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.16 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.15 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.14 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.13 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.12 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.11 lib/souls/cli/gcloud/sql/index.rb
souls-0.32.10 lib/souls/cli/gcloud/sql/index.rb