souls 0.36.1 → 0.36.2
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 +23 -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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72bd5b4cded40b625ae03c8fc8a6e6cadb35bc41cd51d1ecbea455fb408b97f4
|
4
|
+
data.tar.gz: 1adce2db13e657ba9f602a65e8bc75742ac9f1200edb449b9f385bd55092a47d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12eafb2701ebfcc26cc0b770d2fe1c0ae93540d49ccffaa5393e0946520e87cfbbb13c110830a89f3d74e3d05f363633762102e7270ffa9f77171d487fcea1c
|
7
|
+
data.tar.gz: 13e8d4c8032e1901189fabec8907cb9425558f8946832570e85842cc92bc67cfd382ce5b35a3026012e1f61d0bdb971cccc40702e260b6c2e3979997aab08444
|
@@ -10,6 +10,7 @@ module Souls
|
|
10
10
|
workflow(worker_name: worker_name)
|
11
11
|
procfile(worker_name: worker_name, port: port)
|
12
12
|
mother_procfile(worker_name: worker_name)
|
13
|
+
souls_config_init(worker_name: worker_name)
|
13
14
|
end
|
14
15
|
|
15
16
|
def procfile(worker_name: "mailer", port: 3000)
|
@@ -173,6 +174,28 @@ end
|
|
173
174
|
raise(StandardError, e)
|
174
175
|
end
|
175
176
|
|
177
|
+
def souls_config_init(worker_name: "mailer")
|
178
|
+
app_name = Souls.configuration.app_name
|
179
|
+
project_id = Souls.configuration.project_id
|
180
|
+
config_dir = "apps/#{worker_name}/config"
|
181
|
+
FileUtils.mkdir_p(config_dir) unless Dir.exist?(config_dir)
|
182
|
+
FileUtils.touch("#{config_dir}/souls.rb")
|
183
|
+
file_path = "#{config_dir}/souls.rb"
|
184
|
+
File.open(file_path, "w") do |f|
|
185
|
+
f.write(<<~TEXT)
|
186
|
+
Souls.configure do |config|
|
187
|
+
config.app = "#{app_name}"
|
188
|
+
config.project_id = "#{project_id}"
|
189
|
+
config.strain = "worker"
|
190
|
+
config.fixed_gems = ["excluded_gem"]
|
191
|
+
config.workers = []
|
192
|
+
end
|
193
|
+
TEXT
|
194
|
+
end
|
195
|
+
rescue StandardError => e
|
196
|
+
puts(e)
|
197
|
+
end
|
198
|
+
|
176
199
|
def download_worker(worker_name: "mailer")
|
177
200
|
raise(StandardError, "Can't use `worker` for worker. Change Name.") if worker_name == "worker"
|
178
201
|
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.2
|
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.2
|