summaryrefslogtreecommitdiff
path: root/lib/chef/resource/subversion.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-16 11:07:29 -0700
committerTim Smith <tsmith@chef.io>2018-03-16 13:46:50 -0700
commitc0cb0506eda1679418911842f6250e2f54f8871f (patch)
tree1be60682cb8c5b920442f3ea707fa23938cdc71d /lib/chef/resource/subversion.rb
parent8e9c3623b2a37dd51dc0e57466661306dd30a77d (diff)
downloadchef-c0cb0506eda1679418911842f6250e2f54f8871f.tar.gz
Use properties in scm, subversion, and template
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/subversion.rb')
-rw-r--r--lib/chef/resource/subversion.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/resource/subversion.rb b/lib/chef/resource/subversion.rb
index 59f7cd73fd..b093ad3097 100644
--- a/lib/chef/resource/subversion.rb
+++ b/lib/chef/resource/subversion.rb
@@ -31,7 +31,6 @@ 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
@@ -39,9 +38,7 @@ class Chef
"#{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
+ property :svn_binary, String
end
end
end