Class: Rspawn::RspawnWorker
- Inherits:
-
DaemonSpawn::Base
- Object
- DaemonSpawn::Base
- Rspawn::RspawnWorker
- Defined in:
- lib/rspawn/worker.rb
Instance Method Summary collapse
Instance Method Details
#start(args) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/rspawn/worker.rb', line 5 def start(args) command = args.first ENV['RSPAWN_INDEX'] = "#{@index}" exec(command) rescue Exception => e puts "error" end |
#stop ⇒ Object
13 14 |
# File 'lib/rspawn/worker.rb', line 13 def stop end |