public
Description: Better autotest for RSpec & Cucumber with Spork support on OS X. (The GUI version has moved to rubyphunk/rspactor-gui)
Homepage:
Clone URL: git://github.com/rubyphunk/rspactor.git
Click here to lend your support to: rspactor and make a donation at www.pledgie.com !
rubyphunk (author)
Mon Jan 12 14:14:07 -0800 2009
commit  d9b18ab6ccfeb0b1c445c1afc52227c03eb3947f
tree    d64f784a96710874be83e9a978dbfe48226d0b8b
parent  9855a642548f4f2d9ebf39184af6ff39e0afc746
rspactor / rspactor_bin.rb
100755 25 lines (22 sloc) 0.487 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env ruby
require 'timeout'
require 'drb'
 
# Load application
if ARGV[0] == '--dev'
  system("open /Work/rubyphunk/rspactor_app/build/Release/RSpactor.app")
else
  system('open -b com.dynamicdudes.RSpactor')
end
 
# Ping and Pong
Timeout::timeout(10) do
  @service = DRbObject.new(nil, "druby://127.0.0.1:28127")
  while true
    begin
      if @service.ping
        @service.incoming(:relocate_and_run, Dir.pwd)
        exit
      end
    rescue; end
    sleep 1
  end
end