lib/ohai/plugins/linux/platform.rb
#
# Determines the platform version for Debian based systems
#
# @returns [String] version of the platform
#
Determines the platform version for Debian based systems
Determines the platform version for Debian based systems
def debian_platform_version
    if platform == "cumulus"
      cumulus_version
    else 
      File.read("/etc/debian_version").chomp
    end
  end
def debian_platform_version if platform == "cumulus" cumulus_version else File . read ( "/etc/debian_version" ) . chomp end end
Determines the platform version for Debian based systems
Determines the platform version for Debian based systems
# not cumulus
[String] version of the platform
[ String ] version of the platform