diff options
author | Tim Smith <tsmith@chef.io> | 2018-09-14 22:22:55 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-09-14 22:22:55 -0700 |
commit | 2ba7faa003167620b818975247f8c0401a74c405 (patch) | |
tree | 1947d6c382aec6c0c2fee51adec4fe5cb6da2495 /lib/chef/resource/subversion.rb | |
parent | 97fc6a7e948c4982f0b62d9d9162b1679e26cde6 (diff) | |
download | chef-scm.tar.gz |
Move subversion properties out of scm and into subversionscm
This way we're not polluting the git resource with the subversion properties. Cleans up our docs generation a bit. I added some property descriptions while I was in there.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/subversion.rb')
-rw-r--r-- | lib/chef/resource/subversion.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/resource/subversion.rb b/lib/chef/resource/subversion.rb index d67fd22834..adf8244668 100644 --- a/lib/chef/resource/subversion.rb +++ b/lib/chef/resource/subversion.rb @@ -39,6 +39,13 @@ class Chef property :svn_binary, String, description: "The location of the svn binary." + property :svn_username, String, + description: "The username to use for interacting with subversion." + + property :svn_password, String, + description: "The password to use for interacting with subversion.", + sensitive: true, desired_state: false + # 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}" |