souls 0.43.0 → 0.44.3

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: 10295ad8cce6115a41b8d1dc02b3a4889df8bf4f798fdf19afec48020f9af866
4
- data.tar.gz: 89f8bebc45e20ac5a0dac7130d4016afc4519f122addf443748495c5e4f1296a
3
+ metadata.gz: a87b2a504cc46a808015cf66359f7db8f118eaf8c604da233375183071530946
4
+ data.tar.gz: '098130821ce1f0f8f531803684a91824c11ea12a116c7ae95029a75f83ae341e'
5
5
  SHA512:
6
- metadata.gz: 899007fe8edd25ee186331a788caec03728b28a678d99739881d4999d07ccff36651b8f484fac00015b824e652298ec038a963725df067d39f4ab8307f8b05d1
7
- data.tar.gz: 7a2e289db5b166bd967aa21a0c38e4c4d33a06507509b52b317d4a2e115720bb702104541a4a0cf21587d1dbb62425fb52cd5feab31b6f52e372596403d8182b
6
+ metadata.gz: db01dadbecb4d6f2715e71b5e08059826115919117dc5921182ea2a65eda8db28369ba7eee03d942eadb25b92df7030f74f403a566f99e97630a640cddf55e88
7
+ data.tar.gz: 7a0f2f6e0c33c990c1480afc0f5bccf421dbc6a6d5bc2404e7436cc08e0d906350bd4816f65a72bddae5d437750345db116943b70301991f3d0ff9c646c7076b
@@ -2,18 +2,21 @@ module Souls
2
2
  module Create
3
3
  class << self
4
4
  def worker(worker_name: "mailer")
5
- file_dir = "apps/#{worker_name}"
6
- raise(StandardError, "Same Worker Already Exist!") if Dir.exist?(file_dir)
7
-
8
- workers = Souls.configuration.workers
9
- port = 3000 + workers.size
10
- download_worker(worker_name: worker_name)
11
- souls_conf_update(worker_name: worker_name)
12
- souls_conf_update(worker_name: worker_name, strain: "api")
13
- workflow(worker_name: worker_name)
14
- procfile(worker_name: worker_name, port: port)
15
- mother_procfile(worker_name: worker_name)
16
- souls_config_init(worker_name: worker_name)
5
+ require("#{Souls.get_mother_path}/config/souls")
6
+ Dir.chdir(Souls.get_mother_path.to_s) do
7
+ file_dir = "apps/#{worker_name}"
8
+ raise(StandardError, "Same Worker Already Exist!") if Dir.exist?(file_dir)
9
+
10
+ workers = Souls.configuration.workers
11
+ port = 3000 + workers.size
12
+ download_worker(worker_name: worker_name)
13
+ souls_conf_update(worker_name: worker_name)
14
+ souls_conf_update(worker_name: worker_name, strain: "api")
15
+ workflow(worker_name: worker_name)
16
+ procfile(worker_name: worker_name, port: port)
17
+ mother_procfile(worker_name: worker_name)
18
+ souls_config_init(worker_name: worker_name)
19
+ end
17
20
  end
18
21
 
19
22
  def procfile(worker_name: "mailer", port: 3000)
@@ -189,6 +192,7 @@ end
189
192
  Souls.configure do |config|
190
193
  config.app = "#{app_name}"
191
194
  config.project_id = "#{project_id}"
195
+ config.endpoint = "/endpoint"
192
196
  config.strain = "worker"
193
197
  config.fixed_gems = ["excluded_gem"]
194
198
  config.workers = []
@@ -19,6 +19,8 @@ module Souls
19
19
  system("rm -rf #{old_path}", chdir: Souls.get_mother_path)
20
20
  system("mkdir -p #{old_path}", chdir: Souls.get_mother_path)
21
21
  system("cp -r #{cp_path}/* #{old_path}", chdir: Souls.get_mother_path)
22
+ rescue StandardError
23
+ # Do nothing
22
24
  end
23
25
  end
24
26
  end
data/lib/souls/init.rb CHANGED
@@ -42,6 +42,7 @@ module Souls
42
42
  Souls.configure do |config|
43
43
  config.app = "#{app_name}"
44
44
  config.project_id = "#{app_name}-project"
45
+ config.endpoint = "/endpoint"
45
46
  config.strain = "api"
46
47
  config.fixed_gems = ["excluded_gem"]
47
48
  config.workers = []
@@ -71,6 +72,7 @@ module Souls
71
72
  Souls.configure do |config|
72
73
  config.app = "#{app_name}"
73
74
  config.project_id = "#{app_name}-project"
75
+ config.endpoint = "/endpoint"
74
76
  config.strain = "mother"
75
77
  config.fixed_gems = ["excluded_gem"]
76
78
  config.workers = []
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.43.0".freeze
2
+ VERSION = "0.44.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.22.0
1
+ 0.23.3
@@ -1 +1 @@
1
- 0.22.0
1
+ 0.23.3
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.43.0
4
+ version: 0.44.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-09-06 00:00:00.000000000 Z
13
+ date: 2021-09-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport