Skip to content

Commit

Permalink
bundler bin for those who confuse it with bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kirs committed Aug 16, 2013
1 parent e4dbd8f commit e73084e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/bundle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Signal.trap("INT") { exit 1 }

require 'bundler'
# Check if an older version of bundler is installed
$:.each do |path|
$LOAD_PATH.each do |path|
if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
err = "Looks like you have a version of bundler that's older than 0.9.\n"
err << "Please remove your old versions.\n"
Expand Down
10 changes: 10 additions & 0 deletions bin/bundler
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby

require 'bundler'
require 'bundler/cli'

ui = Bundler::UI::Shell.new
ui.error "It's recommended to use Bundler through 'bundle' binary instead of 'bundler'"

bin = "#{File.dirname(__FILE__)}/bundle #{ARGV.join(" ")}"
exec bin

0 comments on commit e73084e

Please sign in to comment.