4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/souls/cli/gcloud/iam/index.rb', line 4
def setup_key
region = Souls.configuration.region
Souls::Gcloud.new.auth_login
Souls::Upgrade.new.config
create_service_account
create_service_account_key
Souls::Gcloud.new.enable_permissions
add_permissions
begin
system("gcloud app create --region=#{region} --quiet")
rescue StandardError, error
puts("gcloud app region is Already exist! - Souls::Gcloud::Iam.setup_key")
end
begin
set_gh_secret_json
rescue StandardError
export_key_to_console
end
end
|