diff options
author | Simon Detheridge <simon@widgit.com> | 2015-08-20 17:27:15 +0100 |
---|---|---|
committer | Simon Detheridge <simon@widgit.com> | 2015-08-24 11:02:01 +0100 |
commit | 01419e6c445b7e92912d6f501f7e22926472e4d8 (patch) | |
tree | a937dc2e58f4c73a8c558218fb580669d780c070 /lib/chef/resource/subversion.rb | |
parent | 953af618fd0114a6557150358369f3ae7491614a (diff) | |
download | chef-01419e6c445b7e92912d6f501f7e22926472e4d8.tar.gz |
Replace output_of_command with shell_out! in subversion provider
output_of_command doesn't work properly on Windows (see chef/chef#1533)
Diffstat (limited to 'lib/chef/resource/subversion.rb')
-rw-r--r-- | lib/chef/resource/subversion.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/resource/subversion.rb b/lib/chef/resource/subversion.rb index ae6a37caa2..a6f4cb4897 100644 --- a/lib/chef/resource/subversion.rb +++ b/lib/chef/resource/subversion.rb @@ -28,12 +28,17 @@ class Chef super @svn_arguments = '--no-auth-cache' @svn_info_args = '--no-auth-cache' + @svn_binary = nil end # Override exception to strip password if any, so it won't appear in logs and different Chef notifications def custom_exception_message(e) "#{self} (#{defined_at}) had an error: #{e.class.name}: #{svn_password ? e.message.gsub(svn_password, "[hidden_password]") : e.message}" end + + def svn_binary(arg=nil) + set_or_return(:svn_binary, arg, :kind_of => [String]) + end end end end |