diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-14 16:57:59 -0700 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-14 16:57:59 -0700 |
commit | dabaf6e10e23b106a4ba55c8767908ef508ebe15 (patch) | |
tree | 1c639c167763b5056405d244d6fd7983a1796b53 /lib/puppet | |
parent | 9304bc707e5c6f6cb5738d939d8e2af69b35149d (diff) |
Since we're overriding retrieve anyhow, make all the values for ensure explicit
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb index aae65a1..a722152 100644 --- a/lib/puppet/type/vcsrepo.rb +++ b/lib/puppet/type/vcsrepo.rb @@ -13,12 +13,19 @@ Puppet::Type.newtype(:vcsrepo) do ensurable do - defaultvalues + + newvalue :present do + provider.create + end newvalue :bare, :required_features => [:bare_repositories] do provider.create end + newvalue :absent do + provider.destroy + end + def retrieve prov = @resource.provider if prov |