Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only log install when it actually happens #183

Merged
merged 1 commit into from
Dec 29, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions libraries/chef_rvm_recipe_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ def install_rvm(opts = {})
install_command = "curl -L #{opts[:installer_url]} | bash #{opts[:script_flags]}"
install_user = opts[:user] || "root"

log "Performing RVM install with [#{install_command}] (as #{install_user})"

i = execute exec_name do
user install_user
command install_command
Expand All @@ -89,7 +87,10 @@ def install_rvm(opts = {})

not_if rvm_installed_check, :environment => exec_env
end
i.run_action(:run) if install_now
if install_now
log "Performing RVM install with [#{install_command}] (as #{install_user})"
i.run_action(:run)
end
end

def upgrade_rvm(opts = {})
Expand Down