Skip to content

Commit

Permalink
Added passing of autolibs script flags
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardteo committed Mar 30, 2013
1 parent 3c93b38 commit e5acdeb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Expand Up @@ -49,6 +49,7 @@
default['rvm']['branch'] = "stable"
default['rvm']['version'] = "head"
default['rvm']['upgrade'] = "none"
default['rvm']['autolibs'] = "enabled"

# extra system-wide tunables
default['rvm']['root_path'] = "/usr/local/rvm"
Expand Down
2 changes: 1 addition & 1 deletion recipes/system_install.rb
Expand Up @@ -19,7 +19,7 @@

include_recipe 'rvm'

script_flags = build_script_flags(node['rvm']['branch'], node['rvm']['version'])
script_flags = build_script_flags(node['rvm']['branch'], node['rvm']['version'], node['rvm']['autolibs'])
upgrade_strategy = build_upgrade_strategy(node['rvm']['upgrade'])
installer_url = node['rvm']['installer_url']
rvm_prefix = ::File.dirname(node['rvm']['root_path'])
Expand Down
3 changes: 2 additions & 1 deletion recipes/user_install.rb
Expand Up @@ -24,8 +24,9 @@
Array(node['rvm']['user_installs']).each do |rvm_user|
version = rvm_user['version'] || node['rvm']['version']
branch = rvm_user['branch'] || node['rvm']['branch']
autolibs = rvm_user['autolibs'] || node['rvm']['autolibs']

script_flags = build_script_flags(branch, version)
script_flags = build_script_flags(branch, version, autolibs)
upgrade_strategy = build_upgrade_strategy(rvm_user['upgrade'])
installer_url = rvm_user['installer_url'] || node['rvm']['installer_url']
rvm_prefix = rvm_user['home'] ||
Expand Down

0 comments on commit e5acdeb

Please sign in to comment.