Module: ChefUtils::DSL::PlatformVersion

Extended by:
PlatformVersion
Includes:
Internal
Included in:
ChefUtils, PlatformVersion
Defined in:
lib/chef-utils/dsl/platform_version.rb

Instance Method Summary collapse

Instance Method Details

#platform_version(node = __getnode) ⇒ ChefUtils::VersionString

Return the platform_version for the node. Acts like a String but also provides a mechanism for checking version constraints.

Parameters:

  • node (Chef::Node) (defaults to: __getnode)

    the node to check

Returns:

Since:

  • 15.8



34
35
36
# File 'lib/chef-utils/dsl/platform_version.rb', line 34

def platform_version(node = __getnode)
  ChefUtils::VersionString.new(node["platform_version"])
end