capper 0.9.12 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/capper/rvm.rb +10 -5
- data/lib/capper/version.rb +1 -1
- metadata +1 -1
data/lib/capper/rvm.rb
CHANGED
@@ -24,20 +24,25 @@ export rvm_gem_options="--no-rdoc --no-ri"
|
|
24
24
|
|
25
25
|
put(rvmrc, "#{deploy_to}/.rvmrc")
|
26
26
|
|
27
|
+
# download rvm installer
|
28
|
+
run("curl -s #{rvm_installer_url} > #{deploy_to}/rvm-installer; " +
|
29
|
+
"chmod +x #{deploy_to}/rvm-installer",
|
30
|
+
:shell => "/bin/bash")
|
31
|
+
|
27
32
|
# install rvm
|
28
33
|
run("if ! test -d #{deploy_to}/.rvm; then " +
|
29
|
-
"
|
30
|
-
"chmod +x #{deploy_to}/rvm-installer; " +
|
31
|
-
"#{deploy_to}/rvm-installer --branch #{rvm_version}; " +
|
32
|
-
"rm -f #{deploy_to}/rvm-installer; fi",
|
34
|
+
"#{deploy_to}/rvm-installer --branch #{rvm_version}; fi",
|
33
35
|
:shell => "/bin/bash")
|
34
36
|
|
35
37
|
# update rvm if version differs
|
36
38
|
run("source ~/.rvm/scripts/rvm && " +
|
37
39
|
"if ! rvm version | grep -q 'rvm #{rvm_version}'; then " +
|
38
|
-
"rvm
|
40
|
+
"#{deploy_to}/rvm-installer --branch #{rvm_version}; fi",
|
39
41
|
:shell => "/bin/bash")
|
40
42
|
|
43
|
+
# remove rvm installer
|
44
|
+
run("rm -f #{deploy_to}/rvm-installer")
|
45
|
+
|
41
46
|
# install requested ruby version
|
42
47
|
wo_gemset = rvm_ruby_string.gsub(/@.*/, '')
|
43
48
|
|
data/lib/capper/version.rb
CHANGED