Sha256: e55bb959e68ac71f1c2564fb39c1e8e4844a2056077aae45686db29d07e097fa

Contents?: true

Size: 1.58 KB

Versions: 29

Compression:

Stored size: 1.58 KB

Contents

require_relative "./iam/index"
require_relative "./pubsub/index"
require_relative "./run/index"
require_relative "./sql/index"

module Souls
  module Gcloud
    class << self
      def auth_login(project_id: "")
        project_id = Souls.configuration.project_id if project_id.blank?
        system("gcloud config set project #{project_id}")
        system("gcloud auth login")
      end

      def enable_permissions
        system("gcloud services enable compute.googleapis.com")
        puts("Operating permission to compute.googleapis.com ...")
        system("gcloud services enable iam.googleapis.com")
        puts("Operating permission to iam.googleapis.com ...")
        system("gcloud services enable dns.googleapis.com")
        puts("Operating permission to dns.googleapis.com ...")
        system("gcloud services enable sqladmin.googleapis.com")
        puts("Operating permission to sqladmin.googleapis.com ...")
        system("gcloud services enable sql-component.googleapis.com")
        puts("Operating permission to sql-component.googleapis.com ...")
        system("gcloud services enable servicenetworking.googleapis.com")
        puts("Operating permission to servicenetworking.googleapis.com ...")
        system("gcloud services enable containerregistry.googleapis.com")
        puts("Operating permission to containerregistry.googleapis.com")
        system("gcloud services enable run.googleapis.com")
        puts("Operating permission to run.googleapis.com")
      end
    end
    module Iam
    end

    module Pubsub
    end

    module Run
    end

    module Sql
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
souls-0.35.0 lib/souls/cli/gcloud/index.rb
souls-0.34.2 lib/souls/cli/gcloud/index.rb
souls-0.34.1 lib/souls/cli/gcloud/index.rb
souls-0.34.0 lib/souls/cli/gcloud/index.rb
souls-0.33.14 lib/souls/cli/gcloud/index.rb
souls-0.33.13 lib/souls/cli/gcloud/index.rb
souls-0.33.12 lib/souls/cli/gcloud/index.rb
souls-0.33.11 lib/souls/cli/gcloud/index.rb
souls-0.33.10 lib/souls/cli/gcloud/index.rb
souls-0.33.9 lib/souls/cli/gcloud/index.rb
souls-0.33.8 lib/souls/cli/gcloud/index.rb
souls-0.33.7 lib/souls/cli/gcloud/index.rb
souls-0.33.6 lib/souls/cli/gcloud/index.rb
souls-0.33.5 lib/souls/cli/gcloud/index.rb
souls-0.33.4 lib/souls/cli/gcloud/index.rb
souls-0.33.3 lib/souls/cli/gcloud/index.rb
souls-0.33.2 lib/souls/cli/gcloud/index.rb
souls-0.33.1 lib/souls/cli/gcloud/index.rb
souls-0.33.0 lib/souls/cli/gcloud/index.rb
souls-0.32.18 lib/souls/cli/gcloud/index.rb