diff options
author | Doug Ireton <doug.ireton@nordstrom.com> | 2012-12-20 15:00:53 -0800 |
---|---|---|
committer | Doug Ireton <doug.ireton@nordstrom.com> | 2013-01-02 09:55:42 -0800 |
commit | 0a7f4f4b6b986a2f0ac9c381fb7435786225836a (patch) | |
tree | 3ec4b8e7f9805d6940cbf6c1d5dfaf7f8ac0d121 | |
parent | 1601558f5fce30bed47bfc6d458a80891e127c61 (diff) | |
download | mixlib-shellout-0a7f4f4b6b986a2f0ac9c381fb7435786225836a.tar.gz |
Add debug message to print installer command line args
-rw-r--r-- | providers/package.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/package.rb b/providers/package.rb index 765d9db..f7865fc 100644 --- a/providers/package.rb +++ b/providers/package.rb @@ -120,6 +120,7 @@ def install_package(name,version) Chef::Log.debug("Processing #{@new_resource} as a #{installer_type} installer.") install_args = [cached_file(@new_resource.source, @new_resource.checksum), expand_options(unattended_installation_flags), expand_options(@new_resource.options)] Chef::Log.info("Starting installation...this could take awhile.") + Chef::Log.debug "Install command: #{ sprintf(install_command_template, *install_args) }" shell_out!(sprintf(install_command_template, *install_args), {:timeout => @new_resource.timeout, :returns => [0,42,127]}) end |