Skip to content
This repository
Browse code

Output RVM install command to info logger.

  • Loading branch information...
commit c59258442548abc52062861fc9de341cb7ada241 1 parent e899c03
Fletcher Nichol authored January 25, 2013

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  libraries/chef_rvm_recipe_helpers.rb
8  libraries/chef_rvm_recipe_helpers.rb
@@ -70,10 +70,14 @@ def install_rvm(opts = {})
70 70
         rvm_installed_check = rvm_wrap_cmd(
71 71
             %{type rvm | cat | head -1 | grep -q '^rvm is a function$'}, user_dir
72 72
         )
  73
+        install_command = "curl -L #{opts[:installer_url]} | bash #{opts[:script_flags]}"
  74
+        install_user = opts[:user] || "root"
  75
+
  76
+        log "Performing RVM install with [#{install_command}] (as #{install_user})"
73 77
 
74 78
         i = execute exec_name do
75  
-          user    opts[:user] || "root"
76  
-          command "curl -L #{opts[:installer_url]} | bash #{opts[:script_flags]}"
  79
+          user    install_user
  80
+          command install_command
77 81
           environment(exec_env)
78 82
 
79 83
           # excute in compile phase if gem_package recipe is requested

0 notes on commit c592584

Please sign in to comment.
Something went wrong with that request. Please try again.