Permalink
Browse files

use default namespace for RVM

  • Loading branch information...
1 parent f8debc2 commit 0ccb3c4313b84889968b4e528ca38babfc03a1e5 @phlipper phlipper committed Aug 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 recipes/default.rb
View
@@ -43,7 +43,7 @@
# calculate rvm_passenger/root_path if not set
ruby_block "calculate rvm_passenger/root_path" do
block do
- rvm_env = RVM::Environment.new
+ rvm_env = ::RVM::Environment.new
rvm_env.use node[:rvm_passenger][:rvm_ruby]
gem_home = rvm_env.info.first[1]["homes"]["gem"]
result = "#{gem_home}/gems/passenger-#{node[:rvm_passenger][:version]}"
@@ -64,7 +64,7 @@
ruby_block "calculate rvm_passenger/ruby_wrapper" do
block do
- rvm_env = RVM::Environment.new
+ rvm_env = ::RVM::Environment.new
rvm_env.use node[:rvm_passenger][:rvm_ruby]
gem_home = rvm_env.info.first[1]["homes"]["gem"]
wrapper_home = gem_home.sub(/\/gems\//, "/wrappers/")

0 comments on commit 0ccb3c4

Please sign in to comment.