lib/beaker/platform.rb in beaker-3.6.0 vs lib/beaker/platform.rb in beaker-3.7.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 = /^(huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|scientific|sles|ubuntu|windows|solaris|aix|el|eos|cumulus|f5|netscaler)\-.+\-.+$/
+ 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)\-.+\-.+$/
# Platform version numbers vs. codenames conversion hash
PLATFORM_VERSION_CODES =
{ :debian => { "jessie" => "8",
"wheezy" => "7",
"squeeze" => "6",
@@ -63,9 +63,10 @@
# * aix
# * el
# * cumulus
# * f5
# * netscaler
+ # * archlinux
def initialize(name)
if name !~ PLATFORMS
raise ArgumentError, "Unsupported platform name #{name}"
end