summaryrefslogtreecommitdiff
path: root/lib/chef/resource/subversion.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-17 19:02:26 -0700
committerTim Smith <tsmith@chef.io>2018-03-17 19:02:26 -0700
commit33d7ad4d680b3f29a2a24848c074da84f1c25eb6 (patch)
treec2a50d1cab5ae0c128086b3fa54789217b958b0a /lib/chef/resource/subversion.rb
parente2eaa3fdcd9a5e2f46d90f799eedcd86cc41eb6a (diff)
downloadchef-33d7ad4d680b3f29a2a24848c074da84f1c25eb6.tar.gz
Move subversion specific properties from scm to subversionscm_subversion
We actually set the defaults for these in the subversion property, but the actual properties are in scm. Move them to subversion since they are subversion specific. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/subversion.rb')
-rw-r--r--lib/chef/resource/subversion.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/chef/resource/subversion.rb b/lib/chef/resource/subversion.rb
index b093ad3097..02b9da0a42 100644
--- a/lib/chef/resource/subversion.rb
+++ b/lib/chef/resource/subversion.rb
@@ -38,6 +38,23 @@ 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_arguments(arg = nil)
+ @svn_arguments, arg = nil, nil if arg == false
+ set_or_return(
+ :svn_arguments,
+ arg,
+ :kind_of => String
+ )
+ end
+
+ def svn_info_args(arg = nil)
+ @svn_info_args, arg = nil, nil if arg == false
+ set_or_return(
+ :svn_info_args,
+ arg,
+ :kind_of => String)
+ end
+
property :svn_binary, String
end
end