pampa 2.0.9 → 2.0.10
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/pampa.rb +2 -2
- 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: 12b10c740765e17db6cac653a32a366138ecbe993d9eff0cced1cef9a0a12bbd
|
|
4
|
+
data.tar.gz: 38230377115a54b5e429f31f82677283e2f5db6e0dbc46f723a8c5ceccf2aac6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e7b63204f3c0015edfa356a1449df5b1b815f5433935301320c8737f54c6e33de179895f7eb4103b9ea3a7102c2daab2419fb253db5ab3a7e7fc7d5c9756da9
|
|
7
|
+
data.tar.gz: c0d8589ed8da6ede820ff70c718b28f8c7162f15eceaea279f0ddeb97defbeb66e5c44d06c52ed6fc51e830f284f3c7c4b6a45f6719f83a8e7450ea9452adcf5
|
data/lib/pampa.rb
CHANGED
|
@@ -368,7 +368,7 @@ module BlackStack
|
|
|
368
368
|
# run the number of workers specified in the configuration of the Pampa module.
|
|
369
369
|
# return an array with the IDs of the workers.
|
|
370
370
|
#
|
|
371
|
-
def self.start()
|
|
371
|
+
def self.start(config_filename='~/pampa/config.rb', worker_filename='~/pampa/worker.rb')
|
|
372
372
|
# validate: the connection string is not nil
|
|
373
373
|
raise "The connection string is nil" if @@connection_string.nil?
|
|
374
374
|
# validate: the connection string is not empty
|
|
@@ -393,7 +393,7 @@ module BlackStack
|
|
|
393
393
|
# run the worker
|
|
394
394
|
# add these parameters for debug: debug=yes pampa=~/code/pampa/lib/pampa.rb
|
|
395
395
|
l.logs "Running worker #{worker.id}... "
|
|
396
|
-
s = "nohup ruby
|
|
396
|
+
s = "nohup ruby #{worker_filename} id=#{worker.id} config=#{config_filename} >/dev/null 2>&1 &"
|
|
397
397
|
node.exec(s, false)
|
|
398
398
|
l.done
|
|
399
399
|
}
|