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, #with_filtered_backtrace
Constructor Details
This class inherits a constructor from Gurke::Runner
Instance Method Details
#run(files) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/gurke/runner.rb', line 56 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 |
#run_remote(options, files, reporter) ⇒ Object
74 75 76 |
# File 'lib/gurke/runner.rb', line 74 def run_remote(, files, reporter) Runner.new(config, ).run files, reporter end |