projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add puppetlabs/certregen module
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
certregen
/
lib
/
puppet
/
parser
/
functions
/
is_classified_with.rb
diff --git a/3rdparty/modules/certregen/lib/puppet/parser/functions/is_classified_with.rb
b/3rdparty/modules/certregen/lib/puppet/parser/functions/is_classified_with.rb
new file mode 100644
(file)
index 0000000..
1e17887
--- /dev/null
+++ b/
3rdparty/modules/certregen/lib/puppet/parser/functions/is_classified_with.rb
@@ -0,0
+1,4
@@
+Puppet::Parser::Functions::newfunction(:is_classified_with, :arity => 1,
+ :type => :rvalue) do |(str)|
+ compiler.node.classes.keys.include?(str)
+end