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



110
111
112
113
114
115
116
# File 'lib/beaker/platform.rb', line 110

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