capistrano / rvm

MIT License
140 stars 47 forks source link

add optional manual task-level management of rvm integration #70

Open jonoterc opened 9 years ago

jonoterc commented 9 years ago

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.