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?
Given a list of platforms, returns true if the current recipe is being run on a node with that platform, false otherwise. === Parameters args:: A list of platforms. Each platform can be in string or symbol format. === Returns true:: If the current platform is in the list false:: If the current platform 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--for-pr
# Commit to gitgit add lib/chef/dsl/platform_introspection.rbgit commit -m "better docs for Chef::DSL::PlatformIntrospection#platform?"
# 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--for-pr
hub pull-request
# Celebrate!