Closed leandrosardi closed 1 year ago
Example of running worker.rb
manually.
ruby ~/code/pampa/worker.rb id=node1.1 config=~/code/pampa/config.rb debug=yes pampa=~/code/pampa/lib/pampa.rb
ruby ~/pampa/worker.rb id=1 config=~/pampa/config.rb debug=yes pampa=~/code/pampa/lib/pampa.rb
nohup ruby ~/pampa/worker.rb id=1 config=~/pampa/config.rb debug=yes pampa=~/code/pampa/lib/pampa.rb 2>&1 1>/dev/null &
Done.
The remaining points in the requirement are pending another issue.
pampa.gemspec
BlackStack::Pampa
module: attributesnodes
,workers
,jobs
.BlackStack::Pampa::Worker
class.BlackStack::Pampa::Noode
nodes class is already provided by blackstack_nodes. Inherit it.BlackStack::Pampa::Job
class.BlackStack::Pampa::Job.descriptor_errors
method.initialize(h)
method.add_node
method.add_nodes
method.attach
anddetach
methods.add_job
method.add_jobs
method.worker.rb
process.deploy
method.dispatch
method.relaunch
method.README.md
.