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

Given a hash similar to the one we use for Platforms, select a value from the hash.  Supports
per platform defaults, along with a single base default. Arrays may be passed as hash keys and
will be expanded.

=== Parameters
platform_hash:: A platform-style hash.

=== 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-for-pr


# Commit to git

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


# 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-for-pr

hub pull-request


# Celebrate!