Skip to content
Browse files

Only run bundler checks if enabled in environment.

Set environment variable GIT_UP_BUNDLER_CHECK to
'true' to enable checks for new bundled gems.
  • Loading branch information...
1 parent 6ec76be commit a1fe2c02cdf2ee0de4de704566f9e812ac752f49 @elliotcm elliotcm committed Oct 21, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/git-up.rb
View
8 lib/git-up.rb
@@ -120,7 +120,7 @@ def rebase(target_branch)
end
def check_bundler
- return unless File.exists? 'Gemfile'
+ return unless use_bundler?
begin
require 'bundler'
@@ -159,5 +159,11 @@ def message
@msg
end
end
+
+private
+
+ def use_bundler?
+ ENV['GIT_UP_BUNDLER_CHECK'] == 'true' and File.exists? 'Gemfile'
+ end
end

0 comments on commit a1fe2c0

Please sign in to comment.
Something went wrong with that request. Please try again.