lib/beaker/platform.rb in beaker-2.15.1 vs lib/beaker/platform.rb in beaker-2.16.0
- old
+ new
@@ -1,11 +1,11 @@
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 = /^(cisco|freebsd|osx|centos|fedora|debian|oracle|redhat|scientific|sles|ubuntu|windows|solaris|aix|el|eos|cumulus)\-.+\-.+$/
+ PLATFORMS = /^(cisco|freebsd|osx|centos|fedora|debian|oracle|redhat|scientific|sles|ubuntu|windows|solaris|aix|el|eos|cumulus|f5)\-.+\-.+$/
# Platform version numbers vs. codenames conversion hash
PLATFORM_VERSION_CODES =
{ :debian => { "jessie" => "8",
"wheezy" => "7",
@@ -19,9 +19,14 @@
"raring" => "1304",
"quantal" => "1210",
"precise" => "1204",
"lucid" => "1004",
},
+ :osx => { "yosemite" => "10.10",
+ "mavericks" => "10.9",
+ "1010" => "10.10",
+ "109" => "10.9"
+ }
}
# A string with the name of the platform.
attr_reader :variant