Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (32 sloc) 1.04 KB
# encoding: utf-8
#
# Tasks:
#
# - vlad:rvm:trust:scm_repo
# - vlad:rvm:trust:current # run after update
# - vlad:rvm:trust:release # run after update
namespace :vlad do
namespace :rvm do
namespace :trust do
set(:sudo_cmd) { "rvmsudo" }
append :command_prefix, 'if [ -s "/etc/profile.d/rvm.sh" ] ; then source "/etc/profile.d/rvm.sh" ; fi'
append :command_prefix, 'if [ -s "${HOME}/.rvmrc" ] ; then source "${HOME}/.rvmrc" ; fi'
append :command_prefix, 'if [ -s "./.rvmrc" ] ; then source "./.rvmrc" ; fi'
desc 'Trust scm/repo'
remote_task :scm_repo do
puts '[RVM] Trust scm/repo'
run "rvm rvmrc trust #{scm_path}/repo"
end
desc 'Trust current (run after update)'
remote_task :current do
puts '[RVM] Trust current'
run "rvm rvmrc trust #{current_path}"
end
desc 'Trust release (run after update)'
remote_task :release do
puts '[RVM] Trust release'
run "rvm rvmrc trust #{release_path}"
end
end
end
end
You can’t perform that action at this time.