The existing approach makes rvm:hook and rvm:check a prequisite for
every task; this adds superfluous overhead to executing any tasks that
don't make any use of ruby-based functionality.
By adding an alternate integration approach this PR allows for enabling
RVM support via manual task configuration without making any changes to
the current default behavior.
The 'no_hook' integration approach is (very) roughly modelled after
capistrano/passenger.
The "with_rvm" convenience method provides an easy wrapper around
before TASKNAME, rvm:hook calls to enable easily adding rvm:hook
support to (one or more) tasks.
The existing approach makes rvm:hook and rvm:check a prequisite for every task; this adds superfluous overhead to executing any tasks that don't make any use of ruby-based functionality.
By adding an alternate integration approach this PR allows for enabling RVM support via manual task configuration without making any changes to the current default behavior.
The 'no_hook' integration approach is (very) roughly modelled after capistrano/passenger.
The "with_rvm" convenience method provides an easy wrapper around
before TASKNAME, rvm:hook
calls to enable easily adding rvm:hook support to (one or more) tasks.