lib/beaker/platform.rb in beaker-3.26.0 vs lib/beaker/platform.rb in beaker-3.27.0

- old
+ new

@@ -1,19 +1,20 @@ 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 = /^(huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|scientific|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/ + PLATFORMS = /^(huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|amazon|scientific|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/ # Platform version numbers vs. codenames conversion hash PLATFORM_VERSION_CODES = { :debian => { "stretch" => "9", "jessie" => "8", "wheezy" => "7", "squeeze" => "6", }, - :ubuntu => { "zesty" => "1704", + :ubuntu => { "artful" => "1710", + "zesty" => "1704", "yakkety" => "1610", "xenial" => "1604", "wily" => "1510", "vivid" => "1504", "utopic" => "1410", @@ -22,13 +23,14 @@ "raring" => "1304", "quantal" => "1210", "precise" => "1204", "lucid" => "1004", }, - :osx => { "sierra" => "1012", - "elcapitan" => "1011", - "yosemite" => "1010", - "mavericks" => "109", + :osx => { "highsierra" => "1013", + "sierra" => "1012", + "elcapitan" => "1011", + "yosemite" => "1010", + "mavericks" => "109", } } # A string with the name of the platform. attr_reader :variant