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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6a59673cbe8fbbc5fd02e75a7ca5d04d5e190e0555be86f721c3ef3c1d33624
4
- data.tar.gz: c4f4e094d3bc26d79c9d1bc37c2f15361f191335cc15fcc29a74e3c85af392ae
3
+ metadata.gz: 72bd5b4cded40b625ae03c8fc8a6e6cadb35bc41cd51d1ecbea455fb408b97f4
4
+ data.tar.gz: 1adce2db13e657ba9f602a65e8bc75742ac9f1200edb449b9f385bd55092a47d
5
5
  SHA512:
6
- metadata.gz: 1957d2a8a3a1389a2c6306c3a695f2c4e5e7b6ff03c46c9e552961a77c8f277a9a58c12a92ba27b5dc6d2791bfdf2a85a888decab54c0481ac2df8464fcdf6c4
7
- data.tar.gz: 936917a7190919b9fb48b0aa69a08e09cfa9225b12bbbf94209bfc70e6acbca4a0e1d3f2568851e2dba2c88906315ca3673d7f676c4c436a974611fdf3be6558
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.36.1".freeze
2
+ VERSION = "0.36.2".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.15.1
1
+ 0.15.2
@@ -1 +1 @@
1
- 0.15.1
1
+ 0.15.2
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.36.1
4
+ version: 0.36.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI