Saturday, June 30, 2012

Using bundler with executables

What Is Bundler?

Bundler is a ruby gem loading system. It loads up all the relevant gems for your project, and ensures the versions are correct, before your app takes over.

How do I ensure that my executables are bundler aware?

When doing a bundle install (or just bundle), always add the option --binstubs. This will create binary wrappers in the bin/ folder of your project. bundle --binstubs

Instead of executing commands directly like this: rake

Execute the command command that is in the bin folder. ./bin/rake

Do I check these /bin/* files in?

I usually git ignore them, but, according to the documentation, it's safe to check in.

I hate typing ./bin/rake every time!

No problem. You can add a relative path like ./bin to your $PATH

  • If you are using rbenv, just add ./bin to your path in your ~/.bashrc
  • If you are using rvm, add ./bin into every .rvmrc

3 comments:

  1. I am hoping the same best work from you in the future as well. In fact your creative writing abilities may inspired others.
    access Bomb-mp3 in UK

    ReplyDelete
  2. bundler is a very comfortable tool. I suppose that I have something like that in my ideals VDR . It is very fast and safe.

    ReplyDelete
  3. This is likely to to|prone to} be either $10 or $20, or the equivalent in Indonesian Rupiah. First, select the on line casino that looks finest to you and fits your taste. You will then be requested to create a person name and password, 메리트카지노 enter your e mail and choose your nation . A second screen will ask you for additional data, sometimes your date of start and full name. Finally, the on line casino will ask you for your address and cellphone quantity for verification purposes when it comes time to make your withdrawals. Ignition Casino is an all-around amazing on line casino that does an excellent job of offering brilliant gameplay.

    ReplyDelete