summaryrefslogtreecommitdiff
path: root/lib/puppet/type
diff options
context:
space:
mode:
authorWłodzimierz Gajda <gajdaw@gajdaw.pl>2014-10-22 10:02:29 +0200
committerWłodzimierz Gajda <gajdaw@gajdaw.pl>2015-01-29 11:20:12 +0100
commit28f8646e4669bacf7a87ffc8694715333355cd32 (patch)
tree636aa98a47b215bdeda7a62473c192bc58b93e7f /lib/puppet/type
parent56e2795091b153cf7ef175f2441a43cc9c315d91 (diff)
Use branch parameter
Diffstat (limited to 'lib/puppet/type')
-rw-r--r--lib/puppet/type/vcsrepo.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index 3bf4029..fdcf9ab 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -40,6 +40,9 @@ Puppet::Type.newtype(:vcsrepo) do
feature :depth,
"The provider can do shallow clones"
+ feature :branch,
+ "The name of the branch"
+
feature :p4config,
"The provider understands Perforce Configuration"
@@ -204,6 +207,10 @@ Puppet::Type.newtype(:vcsrepo) do
desc "The value to be used to do a shallow clone."
end
+ newparam :branch, :required_features => [:branch] do
+ desc "The name of the branch to clone."
+ end
+
newparam :p4config, :required_features => [:p4config] do
desc "The Perforce P4CONFIG environment."
end