summaryrefslogtreecommitdiff
path: root/lib/puppet/type
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-13 00:00:11 -0800
committerBruce Williams <bruce@codefluency.com>2010-03-13 00:00:11 -0800
commita42116b0968cc2f7fe1714564c969ad4674f4f69 (patch)
tree2ad1f4debca2cbcf5c1dd2e1a662a77c2e57bf11 /lib/puppet/type
parentabd973080207906c32831ff315b9f7a6d2bcb872 (diff)
downloadpuppet-vcsrepo-a42116b0968cc2f7fe1714564c969ad4674f4f69.tar.gz
puppet-vcsrepo-a42116b0968cc2f7fe1714564c969ad4674f4f69.tar.bz2
Convert bare repos to working copy repos and vice-versa
Diffstat (limited to 'lib/puppet/type')
-rw-r--r--lib/puppet/type/vcsrepo.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index 04c48a3..4d5c2a0 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -3,7 +3,13 @@ require 'pathname'
Puppet::Type.newtype(:vcsrepo) do
desc "A local version control repository"
- ensurable
+ ensurable do
+ defaultvalues
+
+ newvalue :bare do
+ provider.create
+ end
+ end
newparam(:path) do
desc "Absolute path to repository"