diff options
author | Aaron Stone <aaron@serendipity.cx> | 2013-12-03 01:30:51 -0600 |
---|---|---|
committer | Aaron Stone <aaron@serendipity.cx> | 2014-03-06 22:41:23 -0800 |
commit | e4be0ab189aa32967bb732a8183c142e01942e4b (patch) | |
tree | bbccf4ec6fa012151795126dc49c56cb692514bf | |
parent | 50079b58192ed7a2af1ba6756f75084bc74d33e8 (diff) | |
download | puppet-vcsrepo-e4be0ab189aa32967bb732a8183c142e01942e4b.tar.gz puppet-vcsrepo-e4be0ab189aa32967bb732a8183c142e01942e4b.tar.bz2 |
Call set_ownership from the bzr provider
-rw-r--r-- | lib/puppet/provider/vcsrepo/bzr.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/bzr.rb b/lib/puppet/provider/vcsrepo/bzr.rb index 6688ce8..80b18ed 100644 --- a/lib/puppet/provider/vcsrepo/bzr.rb +++ b/lib/puppet/provider/vcsrepo/bzr.rb @@ -52,6 +52,7 @@ Puppet::Type.type(:vcsrepo).provide(:bzr, :parent => Puppet::Provider::Vcsrepo) bzr('update', '-r', desired, ':parent') end end + update_owner end def latest @@ -70,6 +71,7 @@ Puppet::Type.type(:vcsrepo).provide(:bzr, :parent => Puppet::Provider::Vcsrepo) def create_repository(path) bzr('init', path) + update_owner end def clone_repository(revision) @@ -80,6 +82,12 @@ Puppet::Type.type(:vcsrepo).provide(:bzr, :parent => Puppet::Provider::Vcsrepo) args.push(@resource.value(:source), @resource.value(:path)) bzr(*args) + update_owner end + def update_owner + if @resource.value(:owner) or @resource.value(:group) + set_ownership + end + end end |