Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/capistrano/tasks/rvm.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ namespace :rvm do
end
end

before :check, :hook

task :hook do
on roles(fetch(:rvm_roles, :all)) do
rvm_path = fetch(:rvm_custom_path)
Expand Down Expand Up @@ -43,10 +45,7 @@ namespace :rvm do
end
end

Capistrano::DSL.stages.each do |stage|
after stage, 'rvm:hook'
after stage, 'rvm:check'
end
before :deploy, 'rvm:hook'

namespace :load do
task :defaults do
Expand Down