Sha256: 378e83feeb1b8fea47a4eb09ce6d840b650c29f609392744bf014e3a9a24771d
Contents?: true
Size: 1.89 KB
Versions: 168
Compression:
Stored size: 1.89 KB
Contents
require_relative "./iam/index" require_relative "./pubsub/index" require_relative "./run/index" require_relative "./sql/index" require_relative "./compute/index" module Souls class Gcloud < Thor desc "iam [COMMAND]", "souls gcloud iam Commands" subcommand "iam", Iam desc "pubsub [COMMAND]", "souls gcloud pubsub Commands" subcommand "pubsub", Pubsub desc "sql [COMMAND]", "souls gcloud sql Commands" subcommand "sql", Sql desc "compute [COMMAND]", "souls gcloud compute Commands" subcommand "compute", Compute desc "run [COMMAND]", "souls gcloud run Commands" subcommand "cloud_run", CloudRun map run: "cloud_run" desc "auth_login", "gcloud config set and gcloud auth login" def auth_login project_id = Souls.configuration.project_id system("gcloud config set project #{project_id}") system("gcloud auth login") rescue Thor::Error => e raise(Thor::Error, e) end desc "config_set", "gcloud config set" def config_set require("#{Souls.get_api_path}/config/souls") project_id = Souls.configuration.project_id system("gcloud config set project #{project_id}") end desc "enable_permissions", "Enable Google Cloud APIs for SOULs Framework" def enable_permissions system("gcloud services enable compute.googleapis.com") system("gcloud services enable iam.googleapis.com") system("gcloud services enable dns.googleapis.com") system("gcloud services enable sqladmin.googleapis.com") system("gcloud services enable sql-component.googleapis.com") system("gcloud services enable servicenetworking.googleapis.com") system("gcloud services enable containerregistry.googleapis.com") system("gcloud services enable run.googleapis.com") system("gcloud services enable vpcaccess.googleapis.com") rescue Thor::Error => e raise(Thor::Error, e) end end end
Version data entries
168 entries across 168 versions & 1 rubygems