Method: Beaker::Platform#with_version_number

Defined in:
lib/beaker/platform.rb

#with_version_numberString

Returns the platform string with the platform version as a number. If no conversion is necessary then the original, unchanged platform String is returned.

Examples:

Platform.new(‘debian-wheezy-xxx’).with_version_number == ‘debian-7-xxx’


Returns:

  • (String)

    the platform string with the platform version represented as a number



122
123
124
# File 'lib/beaker/platform.rb', line 122

def with_version_number
  [@variant, @version, @arch].join('-')
end