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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef85bbedb445f7c3c65f6fdbc785de07dbcfa965440592ad3b338a1e65aa64b3
4
- data.tar.gz: 395b1df6bff72559f72da482c4f6631ed12cd87b9d29dbfbfb8da4a5c475fb0c
3
+ metadata.gz: 0f5bbeaad6e7ccce929325b5a2bf909a4a6e1d5836c00856b0fa04cd373a5b61
4
+ data.tar.gz: df3ade898f6d605d1b372136701b8d72b7509e91f0be594e2ea5a8cb91e4aa0c
5
5
  SHA512:
6
- metadata.gz: 3cffd9771dcdbaa5a522fbf168dafb604872761dac670d7dd4870e523c797d35c9a90410036ff72f215290432cb709a107e32590782caf51b341e5e1c3ee81e1
7
- data.tar.gz: 3d5061da46408d32043d8c4df5f9092a05c46fd6ab28cd7be01815c40151711d62bdf4360ef5e2468491deeb8e061f92c02bca645778cd2d549cda8f6da94216
6
+ metadata.gz: 4c8c11a33a54a4e37f47b0201154158b0c4849a8a28e932dd5bd084910a345ae24ad28ae26fe7ff33778e4547767faa3285e735ede3a0d23cbd3b1659a280e1f
7
+ data.tar.gz: 37c09659fc9e1702438e2a79528c268b0839cec5af64323ea658ffada6129070ec306f669ccaa95923ccd6bd1cd51c9eabf7c09997ef6f403f726fa23cfd11a5
@@ -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.project_id
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
@@ -163,6 +163,7 @@ module Souls
163
163
  end
164
164
 
165
165
  def api_deploy
166
+ Souls.service_api_enable
166
167
  Souls.create_service_account
167
168
  Souls.create_service_account_key
168
169
  Souls.add_service_account_role
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.7.8"
2
+ VERSION = "0.7.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI