lib/beaker/platform.rb in beaker-4.40.2 vs lib/beaker/platform.rb in beaker-4.41.0
- old
+ new
@@ -1,28 +1,30 @@
module Beaker
# This class create a Platform object inheriting from String. It supports
# all String methods while adding several platform-specific use cases.
class Platform < String
# Supported platforms
- PLATFORMS = /^(alpine|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|opensuse|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/
+ PLATFORMS = /^(alpine|amazon|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|opensuse|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/
# Platform version numbers vs. codenames conversion hash
PLATFORM_VERSION_CODES =
- { :debian => { "bullseye" => "11",
- "buster" => "10",
- "stretch" => "9",
- "jessie" => "8",
- "wheezy" => "7",
- "squeeze" => "6",
- },
- :ubuntu => { "jammy" => "2204",
- "focal" => "2004",
- "eoan" => "1910",
- "disco" => "1904",
- "cosmic" => "1810",
- "bionic" => "1804",
- "artful" => "1710",
- "zesty" => "1704",
+ { :debian => { "forky" => "14",
+ "trixie" => "13",
+ "bookworm" => "12",
+ "bullseye" => "11",
+ "buster" => "10",
+ "stretch" => "9",
+ "jessie" => "8",
+ "wheezy" => "7",
+ "squeeze" => "6", },
+ :ubuntu => { "jammy" => "2204",
+ "focal" => "2004",
+ "eoan" => "1910",
+ "disco" => "1904",
+ "cosmic" => "1810",
+ "bionic" => "1804",
+ "artful" => "1710",
+ "zesty" => "1704",
"yakkety" => "1610",
"xenial" => "1604",
"wily" => "1510",
"vivid" => "1504",
"utopic" => "1410",
@@ -55,9 +57,10 @@
attr_reader :arch
# Creates the Platform object. Checks to ensure that the platform String
# provided meets the platform formatting rules. Platforms name must be of
# the format /^OSFAMILY-VERSION-ARCH.*$/ where OSFAMILY is one of:
+ # * amazon
# * huaweios
# * cisco_nexus
# * cisco_ios_xr
# * freebsd
# * openbsd