Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* ruby 1.9.3-p374 - passenger

  • Loading branch information...
commit 3b7137920222898a1bd19275fc63fe237feadbeb 1 parent b274f6b
Ali Jelveh authored February 27, 2013

Showing 2 changed files with 15 additions and 6 deletions. Show diff stats Hide diff stats

  1. 6  passenger.rb
  2. 15  rvm.rb
6  passenger.rb
@@ -14,13 +14,13 @@
14 14
   requires_when_unmet 'build tools', 'apache2 dev packages', 'libcurl4-openssl-dev.managed'
15 15
   setup {
16 16
     default_passenger_path = if Babushka::SystemProfile.for_host.name == :precise
17  
-      "/usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.18"
  17
+      "/usr/local/rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.18"
18 18
     else
19  
-      "/usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.12"
  19
+      "/usr/local/rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.12"
20 20
     end
21 21
     passenger_path = Babushka::GemHelper.gem_path_for('passenger') || default_passenger_path
22 22
     set :passenger_root, passenger_path
23  
-    set :ruby, "/usr/local/rvm/wrappers/ruby-1.9.3-p125/ruby"
  23
+    set :ruby, "/usr/local/rvm/wrappers/ruby-1.9.3-p374/ruby"
24 24
   }
25 25
 
26 26
   met? {
15  rvm.rb
@@ -12,6 +12,15 @@ def rvm args
12 12
   meet { sudo("/bin/bash", :input => 'rvm alias create default 1.9.3-p125', :su => true) }
13 13
 end
14 14
 
  15
+dep '1.9.3-p374.rvm' do
  16
+  requires '1.9.3 installed.rvm'
  17
+  met? { 
  18
+    login_shell('ruby --version') && login_shell('ruby --version')['ruby 1.9.3p374']
  19
+  }
  20
+  meet { sudo("/bin/bash", :input => 'rvm alias create default 1.9.3-p374', :su => true) }
  21
+end
  22
+
  23
+
15 24
 dep 'zlib.rvm' do
16 25
   requires 'rvm'
17 26
   met? {
@@ -35,11 +44,11 @@ def rvm args
35 44
 dep '1.9.3 installed.rvm' do
36 45
   requires 'rvm'
37 46
   met? { 
38  
-    rvm('list')['ruby-1.9.3-p125']
  47
+    rvm('list')['ruby-1.9.3-p374']
39 48
   }
40 49
   meet {
41  
-    log('rvm install 1.9.3-p125'){
42  
-      sudo("/bin/bash", :input => 'rvm install 1.9.3-p125', :su => true)
  50
+    log('rvm install 1.9.3-p374'){
  51
+      sudo("/bin/bash", :input => 'rvm install 1.9.3-p374', :su => true)
43 52
     }
44 53
   }
45 54
   after{

0 notes on commit 3b71379

Please sign in to comment.
Something went wrong with that request. Please try again.