diff options
Diffstat (limited to 'lib/puppet/parser/functions/search.rb')
-rw-r--r-- | lib/puppet/parser/functions/search.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/search.rb b/lib/puppet/parser/functions/search.rb new file mode 100644 index 000000000..87dd02d67 --- /dev/null +++ b/lib/puppet/parser/functions/search.rb @@ -0,0 +1,7 @@ +Puppet::Parser::Functions::newfunction(:search, :doc => "Add another namespace for this class to search. + This allows you to create classes with sets of definitions and add + those classes to another class's search path.") do |vals| + vals.each do |val| + add_namespace(val) + end +end |