Method: Beaker::Platform#with_version_codename

Defined in:
lib/beaker/platform.rb

#with_version_codenameString

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

Examples:

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


Returns:

  • (String)

    the platform string with the platform version represented as a codename



113
114
115
116
117
# File 'lib/beaker/platform.rb', line 113

def with_version_codename
  version_array = [@variant, @version, @arch]
  version_array = [@variant, @codename, @arch] if @codename
  return version_array.join('-')
end