diff options
author | Thom May <thom@may.lt> | 2015-09-02 13:44:55 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-09-02 13:44:55 +0100 |
commit | 1c9eaf7491565742ea3fdbb560278ff606f6f901 (patch) | |
tree | 51c03e09837322829dd1ff92f1f2b8f5ad93e2fd /lib/chef/resource | |
parent | b25ff490b191bbec7f291733108f6980f68000a1 (diff) | |
parent | 01419e6c445b7e92912d6f501f7e22926472e4d8 (diff) | |
download | chef-1c9eaf7491565742ea3fdbb560278ff606f6f901.tar.gz |
Merge pull request #3806 from gh2k/subversion-shellout
Replace output_of_command with shell_out! in subversion provider
Diffstat (limited to 'lib/chef/resource')
-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 |