diff options
author | Aaron Stone <aaron@serendipity.cx> | 2014-03-31 11:10:43 -0700 |
---|---|---|
committer | Aaron Stone <aaron@serendipity.cx> | 2014-03-31 11:10:43 -0700 |
commit | 92743c459ec7064c260bbf0686a368182291e99c (patch) | |
tree | bbccf4ec6fa012151795126dc49c56cb692514bf /lib | |
parent | 50079b58192ed7a2af1ba6756f75084bc74d33e8 (diff) | |
parent | e4be0ab189aa32967bb732a8183c142e01942e4b (diff) | |
download | puppet-vcsrepo-92743c459ec7064c260bbf0686a368182291e99c.tar.gz puppet-vcsrepo-92743c459ec7064c260bbf0686a368182291e99c.tar.bz2 |
Merge pull request #108 from sodabrew/bzr_set_ownership
Call set_ownership from the bzr provider
Diffstat (limited to 'lib')
-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 |