chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::Recipe#tagged?

Returns true if the node is tagged with *all* of the supplied +tags+.

=== Parameters
tags<Array>:: A list of tags

=== Returns
true<TrueClass>:: If all the parameters are present
false<FalseClass>:: If any of the parameters are missing

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/recipe.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Recipe-tagged--for-pr


# Commit to git

git add lib/chef/recipe.rbgit commit -m "better docs for Chef::Recipe#tagged?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--Recipe-tagged--for-pr

hub pull-request


# Celebrate!