Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Output RVM install command to info logger.

  • Loading branch information...
commit c59258442548abc52062861fc9de341cb7ada241 1 parent e899c03
@fnichol fnichol authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 libraries/chef_rvm_recipe_helpers.rb
View
8 libraries/chef_rvm_recipe_helpers.rb
@@ -70,10 +70,14 @@ def install_rvm(opts = {})
rvm_installed_check = rvm_wrap_cmd(
%{type rvm | cat | head -1 | grep -q '^rvm is a function$'}, user_dir
)
+ 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 opts[:user] || "root"
- command "curl -L #{opts[:installer_url]} | bash #{opts[:script_flags]}"
+ user install_user
+ command install_command
environment(exec_env)
# excute in compile phase if gem_package recipe is requested
Please sign in to comment.
Something went wrong with that request. Please try again.