summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions/tag.rb
blob: 84df175eb4b26b90191cef7a2368e4ab7c0f40cd (plain)
1
2
3
4
5
6
# Tag the current scope with each passed name
Puppet::Parser::Functions::newfunction(:tag, :doc => "Add the specified tags to the containing class
  or definition.  All contained objects will then acquire that tag, also.
  ") do |vals|
    self.resource.tag(*vals)
end