Permalink
Browse files

try again with something that might work\!

  • Loading branch information...
1 parent 1789ce2 commit 258d26886603c1ba8ae7e1076364b1ba5b74d195 @dchelimsky dchelimsky committed Apr 24, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 Rakefile
View
@@ -9,10 +9,15 @@ ENV["BUNDLE_GEMFILE"] ||= begin
end
puts "Using gemfile: #{ENV["BUNDLE_GEMFILE"].gsub(Pathname.new(__FILE__).dirname.to_s,'').sub(/^\//,'')}"
require "bundler"
-unless `bundle check`
- `BUNDLE_GEMFILE=#{ENV["BUNDLE_GEMFILE"]} bundle install`
+begin
+ Bundler.setup
+rescue
+ if ENV["CI"]
+ sh "bundle install"
+ else
+ raise "You need to install a bundle first. Try 'thor rails:use 3.0.7'"
+ end
end
-Bundler.setup
Bundler::GemHelper.install_tasks
require 'rake'

0 comments on commit 258d268

Please sign in to comment.