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 +4 -4
- data/lib/souls/cli/create/index.rb +16 -12
- data/lib/souls/cli/sync/model.rb +2 -0
- data/lib/souls/init.rb +2 -0
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87b2a504cc46a808015cf66359f7db8f118eaf8c604da233375183071530946
|
4
|
+
data.tar.gz: '098130821ce1f0f8f531803684a91824c11ea12a116c7ae95029a75f83ae341e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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 = []
|
data/lib/souls/cli/sync/model.rb
CHANGED
@@ -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 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.23.3
|
@@ -1 +1 @@
|
|
1
|
-
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.
|
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-
|
13
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|