Created
August 7, 2012 08:41
-
-
Save tigris/3283357 to your computer and use it in GitHub Desktop.
Demonstrate bundler following symlinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /tmp/foo/Gemfile | |
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'unicorn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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