Module | Chef::Mixin::Language |
In: |
lib/chef/mixin/language.rb
|
Given a list of platforms, returns true if the current recipe is being run on a node with that platform, false otherwise.
args: | A list of platforms |
true: | If the current platform is in the list |
false: | If the current platform is not in the list |
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.
platform_hash: | A platform-style hash. |
value: | Whatever the most specific value of the hash is. |