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#value_for_platform_family

Given a hash mapping platform families to values, select a value from the hash. Supports a single
base default if platform family is not in the map. Arrays may be passed as hash keys and will be
expanded

=== Parameters
platform_family_hash:: A hash in the form { platform_family_name => value }

=== Returns
value:: Whatever the most specific value of the hash is.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/dsl/platform_introspection.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--DSL--PlatformIntrospection-value_for_platform_family-for-pr


# Commit to git

git add lib/chef/dsl/platform_introspection.rbgit commit -m "better docs for Chef::DSL::PlatformIntrospection#value_for_platform_family"


# 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--DSL--PlatformIntrospection-value_for_platform_family-for-pr

hub pull-request


# Celebrate!