summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-14 16:57:59 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-14 16:57:59 -0700
commitdabaf6e10e23b106a4ba55c8767908ef508ebe15 (patch)
tree1c639c167763b5056405d244d6fd7983a1796b53 /lib
parent9304bc707e5c6f6cb5738d939d8e2af69b35149d (diff)
downloadpuppet-vcsrepo-dabaf6e10e23b106a4ba55c8767908ef508ebe15.tar.gz
puppet-vcsrepo-dabaf6e10e23b106a4ba55c8767908ef508ebe15.tar.bz2
Since we're overriding retrieve anyhow, make all the values for ensure explicit
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/vcsrepo.rb9
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