Permalink
Browse files

Ensure per-user installs get version=head and branch=stable defaults.

References #84
  • Loading branch information...
1 parent 66e7fbb commit 6fd294d087eff755c68ecd69b0adfbed3d51c80d @fnichol fnichol committed Apr 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 recipes/user_install.rb
View
@@ -22,7 +22,10 @@
install_pkg_prereqs
Array(node['rvm']['user_installs']).each do |rvm_user|
- script_flags = build_script_flags(rvm_user['version'], rvm_user['branch'])
+ version = rvm_user['version'] || node['rvm']['version']
+ branch = rvm_user['branch'] || node['rvm']['branch']
+
+ script_flags = build_script_flags(version, branch)
upgrade_strategy = build_upgrade_strategy(rvm_user['upgrade'])
installer_url = rvm_user['installer_url'] || node['rvm']['installer_url']
rvm_prefix = rvm_user['home'] ||

0 comments on commit 6fd294d

Please sign in to comment.