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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pampa.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad3879f199bd25c70d8813a8f6e9ee35392eb53806efb6501ac170c9032e9f76
4
- data.tar.gz: 81b3dff09c975dd450e992d99f79e2a07ab5207c5a1ccf51ac461cfdae244bf3
3
+ metadata.gz: 12b10c740765e17db6cac653a32a366138ecbe993d9eff0cced1cef9a0a12bbd
4
+ data.tar.gz: 38230377115a54b5e429f31f82677283e2f5db6e0dbc46f723a8c5ceccf2aac6
5
5
  SHA512:
6
- metadata.gz: '0180f41fd431073ee8a401889926339fa71fedf8b7472d7a1a08f237b25623ca23ddb047c80446593394beaf629782ccc1f0ceab38dc7e29716fd0e774ba10f2'
7
- data.tar.gz: b7e672e0b09709f89541dffad2f6a420bebdffc8e17733e17b67becfb4334c415b465e65662175b5482473cc0bbfaecfe5adece05c5392a6075930b271d2e382
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 worker.rb id=#{worker.id} config=~/pampa/config.rb >/dev/null 2>&1 &"
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pampa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi