Use _rake_command instead of bundled_rake when using bundler plugin

This commit is contained in:
Satoshi Ohmori 2015-11-18 02:18:08 +09:00
commit 11761cdc36

View file

@ -12,7 +12,11 @@ _rake_does_task_list_need_generating () {
}
_rake_generate () {
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks
if type bundled_rake &> /dev/null && type _rake_command &> /dev/null; then
_rake_command --silent --tasks | cut -d " " -f 2 > .rake_tasks
else
command rake --silent --tasks | cut -d " " -f 2 > .rake_tasks
fi
}
_rake () {