Skip to content

Instantly share code, notes, and snippets.

@tigris
Created August 7, 2012 08:41
Show Gist options
  • Save tigris/3283357 to your computer and use it in GitHub Desktop.
Save tigris/3283357 to your computer and use it in GitHub Desktop.
Demonstrate bundler following symlinks
# /tmp/foo/Gemfile
source 'https://rubygems.org'
gem 'rake'
gem 'unicorn'
$ cd /tmp
$ ln -s foo bar
$ cd /tmp/foo
$ bundle install --path gems
$ bundle exec rake foo
##### /tmp/foo/gems/ruby/1.9.1/gems/unicorn-4.3.1/bin/unicorn_rails
$ cd ../bar
$ bundle exec rake foo
##### /tmp/foo/gems/ruby/1.9.1/gems/unicorn-4.3.1/bin/unicorn_rails
# /tmp/foo/Rakefile
task :foo do
$stderr.puts '##### ' + Gem.bin_path('unicorn', 'unicorn_rails', '>= 0')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment