summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-08-17 10:54:10 -0700
committerDaniel Pittman <daniel@rimspace.net>2011-08-17 10:54:10 -0700
commit2477a2ed69d3f3443b5d941ae9484d000eb36dbb (patch)
tree45e7647fc2cad14d56ad6e2aaf55e5f6d8b5ca2d
parentf2806a17ad82f6e42f720d589cb6e19ab6e0c5f3 (diff)
parent75b2b690abad7680e57ddc4e618791b49ec153cf (diff)
Merge pull request #5 from justintime/svn-update_owner
Adding in missing support for owner and group properties.
-rw-r--r--lib/puppet/provider/vcsrepo/svn.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb
index 680188c..28f1167 100644
--- a/lib/puppet/provider/vcsrepo/svn.rb
+++ b/lib/puppet/provider/vcsrepo/svn.rb
@@ -17,6 +17,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
@resource.value(:path),
@resource.value(:revision))
end
+ update_owner
end
def working_copy_exists?
@@ -57,6 +58,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
at_path do
svn('update', '-r', desired)
end
+ update_owner
end
private
@@ -79,4 +81,9 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
svnadmin(*args)
end
+ def update_owner
+ if @resource.value(:owner) or @resource.value(:group)
+ set_ownership
+ end
+ end
end