Method: Chef::Node#tag
- Defined in:
- lib/chef/node.rb
#tag(*args) ⇒ Object
Add the list of tags to the node.
Parameters
- tags<Array>
-
A list of tags
Returns
- tags<Array>
-
The current list of run_context.node.tags
411 412 413 414 415 416 417 |
# File 'lib/chef/node.rb', line 411 def tag(*args) args.each do |tag| .push(tag.to_s) unless .include? tag.to_s end end |