projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
geo ferm
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
certregen
/
lib
/
puppet
/
functions
/
is_classified_with.rb
1
Puppet::Functions.create_function(:is_classified_with) do
2
dispatch :is_classified_with do
3
param 'String', :str
4
end
5
6
def is_classified_with(str)
7
closure_scope.find_global_scope.compiler.node.classes.keys.include?(str.to_s)
8
end
9
end