Permalink
Browse files

Better way of conditionally running bundle install

  • Loading branch information...
1 parent b022c8e commit 2def45caaac78028231003712382c07b54838ff6 @glv committed Mar 16, 2010
Showing with 4 additions and 9 deletions.
  1. +0 −4 Gemfile
  2. +3 −4 Gemfile.lock
  3. +1 −1 Rakefile
  4. BIN vendor/cache/rake-0.8.7.gem
View
@@ -1,7 +1,3 @@
-source :gemcutter
-
-# path File.expand_path('../vendor/gems', __FILE__)
-
gem 'rspec', '>= 2.0.0.beta.3'
group :test do
View
@@ -33,7 +33,6 @@ specs:
version: 1.2.3
- rspec-mocks:
version: 2.0.0.beta.3
-hash: 52c8426bd6633bf8e04b51a60c771b9cdce632ef
-sources:
-- Rubygems:
- uri: http://gemcutter.org
+hash: 1dad17200ea062bfc31bce785603f49c9a6ccf6c
+sources: []
+
View
@@ -2,7 +2,7 @@ def rcr?
ENV['RUN_CODE_RUN'] == 'true'
end
-system("bundle install --disable-shared-gems") if rcr?
+system("bundle check || bundle install --disable-shared-gems")
begin
# Try to require the preresolved locked set of gems.
Binary file not shown.

0 comments on commit 2def45c

Please sign in to comment.