Class: Gurke::Runner::DRbServer
- Inherits:
-
Gurke::Runner
- Object
- Gurke::Runner
- Gurke::Runner::DRbServer
- Defined in:
- lib/gurke/runner.rb
Constant Summary collapse
- URI =
'druby://localhost:8789'
Instance Attribute Summary
Attributes inherited from Gurke::Runner
Instance Method Summary collapse
Methods inherited from Gurke::Runner
#builder, #hook, #initialize, #reporter, #retries, #with_filtered_backtrace
Constructor Details
This class inherits a constructor from Gurke::Runner
Instance Method Details
#run(_files) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/gurke/runner.rb', line 66 def run(_files) require 'drb' hook :system, nil, nil do DRb.start_service URI, self $stdout.puts 'DRb Server running...' begin DRb.thread.join rescue Interrupt $stdout.puts $stdout.puts 'Exiting...' end 0 end end |