diff options
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r-- | lib/puppet/provider/vcsrepo/svn.rb | 7 |
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 |