Commit c925aabe authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #2885 from tsujigiri/bundler/run_binstubbed

Make bundler plugin run binstubbed cmd if existing
parents 6eefbe24 480ca220
......@@ -48,9 +48,17 @@ _within-bundled-project() {
false
}
_binstubbed() {
[ -f "./bin/${1}" ]
}
_run-with-bundler() {
if _bundler-installed && _within-bundled-project; then
bundle exec $@
if _binstubbed $1; then
bundle exec "./bin/$@"
else
bundle exec $@
fi
else
$@
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment