chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::DSL::PlatformIntrospection#platform_family?
Given a list of platform families, returns true if the current recipe is being run on a node within that platform family, false otherwise. === Parameters args:: A list of platform families. Each platform family can be in string or symbol format. === Returns true:: if the current node platform family is in the list. false:: if the current node platform family is not in the list.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/dsl/platform_introspection.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--DSL--PlatformIntrospection-platform_family--for-pr
# Commit to gitgit add lib/chef/dsl/platform_introspection.rbgit commit -m "better docs for Chef::DSL::PlatformIntrospection#platform_family?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--DSL--PlatformIntrospection-platform_family--for-pr
hub pull-request
# Celebrate!