summaryrefslogtreecommitdiff
path: root/lib/puppet/provider/vcsrepo
diff options
context:
space:
mode:
authorJustin Ellison <justin.ellison@buckle.com>2011-08-17 11:10:34 -0500
committerJustin Ellison <justin.ellison@buckle.com>2011-08-17 11:10:34 -0500
commit75b2b690abad7680e57ddc4e618791b49ec153cf (patch)
tree45e7647fc2cad14d56ad6e2aaf55e5f6d8b5ca2d /lib/puppet/provider/vcsrepo
parentf2806a17ad82f6e42f720d589cb6e19ab6e0c5f3 (diff)
downloadpuppet-vcsrepo-75b2b690abad7680e57ddc4e618791b49ec153cf.tar.gz
puppet-vcsrepo-75b2b690abad7680e57ddc4e618791b49ec153cf.tar.bz2
Adding in missing support for owner and group properties.
Diffstat (limited to 'lib/puppet/provider/vcsrepo')
-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