souls 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls.rb +14 -1
- data/lib/souls/init.rb +1 -0
- data/lib/souls/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f5bbeaad6e7ccce929325b5a2bf909a4a6e1d5836c00856b0fa04cd373a5b61
|
4
|
+
data.tar.gz: df3ade898f6d605d1b372136701b8d72b7509e91f0be594e2ea5a8cb91e4aa0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8c11a33a54a4e37f47b0201154158b0c4849a8a28e932dd5bd084910a345ae24ad28ae26fe7ff33778e4547767faa3285e735ede3a0d23cbd3b1659a280e1f
|
7
|
+
data.tar.gz: 37c09659fc9e1702438e2a79528c268b0839cec5af64323ea658ffada6129070ec306f669ccaa95923ccd6bd1cd51c9eabf7c09997ef6f403f726fa23cfd11a5
|
data/lib/souls.rb
CHANGED
@@ -149,6 +149,11 @@ module Souls
|
|
149
149
|
system "gcloud config set project #{project_id}"
|
150
150
|
end
|
151
151
|
|
152
|
+
def config_set
|
153
|
+
project_id = Souls.configuration.project_id
|
154
|
+
system "gcloud config set project #{project_id}"
|
155
|
+
end
|
156
|
+
|
152
157
|
def create_cluster
|
153
158
|
app = Souls.configuration.app
|
154
159
|
network = Souls.configuration.network
|
@@ -251,10 +256,18 @@ module Souls
|
|
251
256
|
end
|
252
257
|
|
253
258
|
def set_dns
|
254
|
-
project_id = Souls.configuration.
|
259
|
+
project_id = Souls.configuration.main_project_id
|
255
260
|
`gcloud dns record-sets import -z=#{project_id} --zone-file-format ./infra/dns_conf`
|
256
261
|
end
|
257
262
|
|
263
|
+
def service_api_enable
|
264
|
+
`gcloud services enable iam.googleapis.com`
|
265
|
+
`gcloud services enable dns.googleapis.com`
|
266
|
+
`gcloud services enable container.googleapis.com`
|
267
|
+
`gcloud services enable containerregistry.googleapis.com`
|
268
|
+
`gcloud services enable servicenetworking.googleapis.com`
|
269
|
+
end
|
270
|
+
|
258
271
|
def update_container zone: :asia
|
259
272
|
project_id = Souls.configuration.project_id
|
260
273
|
firestore = Google::Cloud::Firestore.new
|
data/lib/souls/init.rb
CHANGED
data/lib/souls/version.rb
CHANGED