Automatically run bundle exec if required

Posted Over 13 years ago. Visible to the public.

There will probably be better solutions as we become more experienced with using Bundler, and more command line tools become Bundler-aware.

b will use bundle exec if there is a Gemfile in the working directory, and run the call without Bundler otherwise.

b spec spec

This script is part of our geordi gem on github Show archive.org snapshot .

Henning Koch
Last edit
Almost 13 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2010-09-08 07:47)