summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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