Permalink
Browse files

Prevent rvm from reinstalling each chef run

  • Loading branch information...
1 parent e0ce8a9 commit 374ae996560b06babe94b595187db6f7c9874553 @xdissent xdissent committed Apr 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 libraries/chef_rvm_recipe_helpers.rb
@@ -80,7 +80,8 @@ def install_rvm(opts = {})
end
not_if rvm_wrap_cmd(
- %{type rvm | cat | head -1 | grep -q '^rvm is a function$'}, user_dir)
+ %{type rvm | cat | head -1 | grep -q '^rvm is a function$'}, user_dir),
+ :environment => exec_env
end
i.run_action(:run) if install_now
end

0 comments on commit 374ae99

Please sign in to comment.