Method: Chef::DSL::PlatformIntrospection#value_for_platform

Defined in:
lib/chef/dsl/platform_introspection.rb

#value_for_platform(platform_hash) ⇒ Object

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.



150
151
152
# File 'lib/chef/dsl/platform_introspection.rb', line 150

def value_for_platform(platform_hash)
  PlatformDependentValue.new(platform_hash).value_for_node(node)
end