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.
Files changed (3) hide show
  1. data/lib/capper/rvm.rb +10 -5
  2. data/lib/capper/version.rb +1 -1
  3. metadata +1 -1
@@ -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
- "curl -s #{rvm_installer_url} > #{deploy_to}/rvm-installer; " +
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 get branch #{rvm_version}; fi",
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
 
@@ -1,3 +1,3 @@
1
1
  module Capper
2
- VERSION = "0.9.12"
2
+ VERSION = "0.9.13"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.12
5
+ version: 0.9.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Benedikt B\xC3\xB6hm"