module ChefUtils::DSL::PlatformVersion

Public Instance Methods

platform_version(node = __getnode) click to toggle source

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

@param [Chef::Node] node the node to check @since 15.8

@return [ChefUtils::VersionString]

# File lib/chef-utils/dsl/platform_version.rb, line 34
def platform_version(node = __getnode)
  ChefUtils::VersionString.new(node["platform_version"])
end