diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-04 23:55:31 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-04 23:56:18 +0000 |
commit | 9ef6b6f551a34922cfd831e2521495e89afe2f94 (patch) | |
tree | b041131b4ee0d5969b3b4e959112c660cf6d48dc /Rakefile | |
parent | 018a9deff4bd9273e053f369d746256e5b3ac99b (diff) | |
download | unicorn-9ef6b6f551a34922cfd831e2521495e89afe2f94.tar.gz |
We'll be using more of Isolate in development.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -189,29 +189,3 @@ begin end rescue LoadError end - -task :isolate do - require 'isolate' - ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' - opts = { - :system => false, - :path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}", - :multiruby => false, # we want "1.8.7" instead of "1.8" - } - fp = File.open(__FILE__, "rb") - fp.flock(File::LOCK_EX) - - # C extensions aren't binary-compatible across Ruby versions - pid = fork { Isolate.now!(opts) { gem 'sqlite3-ruby', '1.2.5' } } - _, status = Process.waitpid2(pid) - status.success? or abort status.inspect - - # pure Ruby gems can be shared across all Rubies - %w(3.0.0).each do |rails_ver| - opts[:path] = "tmp/isolate/rails-#{rails_ver}" - pid = fork { Isolate.now!(opts) { gem 'rails', rails_ver } } - _, status = Process.waitpid2(pid) - status.success? or abort status.inspect - end - fp.flock(File::LOCK_UN) -end |