You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paul Dobbins edited this page Jan 25, 2014
·
3 revisions
First, setup spring per the installation instructions, making sure to perform the binstubs step:
bundleexecspringbinstub --all
Now, the challenge becomes: how do I use one method to execute spring-driven commands in this project and non-spring-driven commands in other projects that don't use spring.
The naming I used here is just short for "rake command" and "rails command" -- use whatever you'd like. What the commands do is, they'll check if there's a binstub in the current project for the associated rake / rails command, and, if so, use it. Otherwise it defaults to the standard bundle exec rake / rails commands.
Now you can use the rakec and railsc commands directly, or integrate them into your own macros. For example: