Sha256: 4785a1955157f5c1d5d3c21c98faf1f39fe45523de86046c595f09206c53112a

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

require 'daemon_spawn'

module Rspawn
  class RspawnWorker < DaemonSpawn::Base
    def start(args)
      command = args.first
      ENV['RSPAWN_INDEX'] = "#{@index}"
      exec(command)
    rescue Exception => e
      puts "error"
    end

    def stop
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspawn-0.4.0 lib/rspawn/worker.rb
rspawn-0.3.0 lib/rspawn/worker.rb