souls 0.35.3 → 0.35.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45b858d0b8b28252dbc16a47b2a487cb5104904593b492692835eb2c6d12bf09
4
- data.tar.gz: 850867fab6be599cacef8124056e95a92a6310724a03d1cdd7e1ce4241bca275
3
+ metadata.gz: 9e4ac0165aeb1a4ebd990de69d4d1479a3a5318c99cdf8ca481efd1ba761f35d
4
+ data.tar.gz: 101aba307c5c493716325d12259d50fce939f65f4c62f130a438369cf7fffa59
5
5
  SHA512:
6
- metadata.gz: fa8e7f5b3ea59f60440072b2feb50d194e2d3cc39f5a9f76acc51480b2faafce466f7f4f5654598a309d42be2db3941b57eb1267b019a2e2456cec907f884206
7
- data.tar.gz: 38e38aae726f20d4e54a23cd62091e89f47c0a4f0a279f2d58b1b35e9733ca93b903bad50390e3617dda48599cc6a7e1664fbef9e96b5ff6cf1fa2fbb4129e37
6
+ metadata.gz: 768249fc180dc4442afc593e38eb737cd33dd0fded32e4586cb1e5ee9e5b4e6d5ac4fa4570647b5559f1616c31b9d25431006a43f97babd9f72c480b123661c2
7
+ data.tar.gz: 8456b9584df445078f51915698c11564460f6de4d2a7fddb532b36f37fda84ddae7f420409d9d8eca68433068f5e7fa59dcded3c5e468fbe82ea9ae9a28d30bd
@@ -0,0 +1,6 @@
1
+ module Souls
2
+ module Create
3
+ class << self
4
+ end
5
+ end
6
+ end
@@ -44,11 +44,10 @@ module Souls
44
44
 
45
45
  def create_connector(app_name: "", region: "asia-northeast1")
46
46
  app_name = Souls.configuration.app if app_name.blank?
47
- project_id = Souls.configuration.app if project_id.blank?
48
47
  system(
49
48
  "gcloud compute networks vpc-access connectors create #{app_name}-connector \
50
49
  --region=#{region} \
51
- --subnet-project=#{project_id} \
50
+ --subnet-project=#{app_name} \
52
51
  --subnet=#{app_name}-subnet"
53
52
  )
54
53
  end
@@ -30,6 +30,8 @@ module Souls
30
30
  puts("Operating permission to containerregistry.googleapis.com")
31
31
  system("gcloud services enable run.googleapis.com")
32
32
  puts("Operating permission to run.googleapis.com")
33
+ system("gcloud services enable vpcaccess.googleapis.com")
34
+ puts("Operating permission to vpcaccess.googleapis.com")
33
35
  end
34
36
  end
35
37
  module Iam
@@ -14,6 +14,10 @@ module Souls
14
14
  project_id = Souls.configuration.project_id if project_id.blank?
15
15
  system("gcloud run services list --project #{project_id}")
16
16
  end
17
+
18
+ def get_endpoint(worker_name: "")
19
+ system("gcloud run services list | grep #{worker_name} | awk '{print $4}'")
20
+ end
17
21
  end
18
22
  end
19
23
  end
@@ -1,3 +1,4 @@
1
+ require_relative "./create/index"
1
2
  require_relative "./docker/index"
2
3
  require_relative "./gcloud/index"
3
4
  require_relative "./release/index"
@@ -5,6 +6,9 @@ require_relative "./sync/index"
5
6
  require_relative "./upgrade/index"
6
7
 
7
8
  module Souls
9
+ module Create
10
+ end
11
+
8
12
  module Docker
9
13
  end
10
14
 
data/lib/souls/init.rb CHANGED
@@ -44,6 +44,7 @@ module Souls
44
44
  config.project_id = "#{app_name}-project"
45
45
  config.strain = "api"
46
46
  config.fixed_gems = ["excluded_gem"]
47
+ config.workers = []
47
48
  end
48
49
  TEXT
49
50
  end
@@ -72,6 +73,7 @@ module Souls
72
73
  config.project_id = "#{app_name}-project"
73
74
  config.strain = "mother"
74
75
  config.fixed_gems = ["excluded_gem"]
76
+ config.workers = []
75
77
  end
76
78
  TEXT
77
79
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.35.3".freeze
2
+ VERSION = "0.35.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.14.3
1
+ 0.14.4
@@ -1 +1 @@
1
- 0.14.3
1
+ 0.14.4
data/lib/souls.rb CHANGED
@@ -246,7 +246,7 @@ module Souls
246
246
  end
247
247
 
248
248
  class Configuration
249
- attr_accessor :app, :strain, :project_id, :github_repo, :worker_endpoint, :fixed_gems
249
+ attr_accessor :app, :strain, :project_id, :github_repo, :worker_endpoint, :fixed_gems, :workers
250
250
 
251
251
  def initialize
252
252
  @app = nil
@@ -255,6 +255,7 @@ module Souls
255
255
  @github_repo = nil
256
256
  @worker_endpoint = nil
257
257
  @fixed_gems = nil
258
+ @workers = nil
258
259
  end
259
260
  end
260
261
  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.35.3
4
+ version: 0.35.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -125,6 +125,7 @@ files:
125
125
  - lib/souls/api/update/rspec_mutation.rb
126
126
  - lib/souls/api/update/rspec_resolver.rb
127
127
  - lib/souls/api/update/type.rb
128
+ - lib/souls/cli/create/index.rb
128
129
  - lib/souls/cli/docker/index.rb
129
130
  - lib/souls/cli/gcloud/compute/index.rb
130
131
  - lib/souls/cli/gcloud/iam/index.rb