Class: SYSll::VERIFY

Inherits:
Object
  • Object
show all
Defined in:
lib/sysverify.rb

Class Method Summary collapse

Class Method Details

.osObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/sysverify.rb', line 5

def self.os
  @os ||= (
    host_os = RbConfig::CONFIG['host_os']
    case host_os
    when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
      :windows
    when /darwin|mac os/
      :macosx
    when /linux/
      :linux
    when /solaris|bsd|dragonfly/
      :bsd
    when /android/
      :android
    else
      raise Error::WebDriverError, "unknow os: #{host_os.inspect}"
    end
  )
end