Skip to content

Instantly share code, notes, and snippets.

@hesco
Created September 20, 2014 14:36
Show Gist options
  • Save hesco/8d05ec6a9289e397ec15 to your computer and use it in GitHub Desktop.
Save hesco/8d05ec6a9289e397ec15 to your computer and use it in GitHub Desktop.
diff --git a/TODO b/TODO
index e69de29..25850e8 100644
--- a/TODO
+++ b/TODO
@@ -0,0 +1,6 @@
+
+In lib/puppet/provider/vcsrepo/git.rb
+need to provide an unless attribute, like so:
+
+ unless => "/usr/bin/test `/usr/bin/git describe --tags | /bin/grep $DEPLOY_REVISION | /usr/bin/wc -l` -eq 1 ",
+
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index f678389..20c4ba6 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -43,6 +43,9 @@ Puppet::Type.newtype(:vcsrepo) do
feature :p4config,
"The provider understands Perforce Configuration"
+ feature :unless,
+ "The provider understands the unless meta-attribute, not yet implemented"
+
ensurable do
attr_accessor :latest
@@ -134,6 +137,10 @@ Puppet::Type.newtype(:vcsrepo) do
end
end
+ newparam :unless do
+ desc "Puppet Exec's unless meta-attribute, define when vcsrepo should not run, not yet implemented"
+ end
+
newparam :source do
desc "The source URI for the repository"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment