webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
webkitpy.common.system.platforminfo.PlatformInfo Class Reference
Inheritance diagram for webkitpy.common.system.platforminfo.PlatformInfo:

Public Member Functions

def __init__ (self, sys_module, platform_module, executive)
 
def is_mac (self)
 
def is_win (self)
 
def is_cygwin (self)
 
def is_linux (self)
 
def is_freebsd (self)
 
def is_openbsd (self)
 
def is_netbsd (self)
 
def display_name (self)
 
def total_bytes_memory (self)
 
def terminal_width (self)
 
def xcode_sdk_version (self, sdk_name)
 
def xcode_simctl_list (self)
 

Public Attributes

 os_name
 
 os_version
 

Detailed Description

This class provides a consistent (and mockable) interpretation of
system-specific values (like sys.platform and platform.mac_ver())
to be used by the rest of the webkitpy code base.

Public (static) properties:
-- os_name
-- os_version

Note that 'future' is returned for os_version if the operating system is
newer than one known to the code.

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.common.system.platforminfo.PlatformInfo.__init__ (   self,
  sys_module,
  platform_module,
  executive 
)

Member Function Documentation

◆ display_name()

def webkitpy.common.system.platforminfo.PlatformInfo.display_name (   self)

◆ is_cygwin()

def webkitpy.common.system.platforminfo.PlatformInfo.is_cygwin (   self)

◆ is_freebsd()

def webkitpy.common.system.platforminfo.PlatformInfo.is_freebsd (   self)

◆ is_linux()

def webkitpy.common.system.platforminfo.PlatformInfo.is_linux (   self)

◆ is_mac()

def webkitpy.common.system.platforminfo.PlatformInfo.is_mac (   self)

◆ is_netbsd()

def webkitpy.common.system.platforminfo.PlatformInfo.is_netbsd (   self)

◆ is_openbsd()

def webkitpy.common.system.platforminfo.PlatformInfo.is_openbsd (   self)

◆ is_win()

def webkitpy.common.system.platforminfo.PlatformInfo.is_win (   self)

◆ terminal_width()

def webkitpy.common.system.platforminfo.PlatformInfo.terminal_width (   self)
Returns sys.maxint if the width cannot be determined.

◆ total_bytes_memory()

def webkitpy.common.system.platforminfo.PlatformInfo.total_bytes_memory (   self)

◆ xcode_sdk_version()

def webkitpy.common.system.platforminfo.PlatformInfo.xcode_sdk_version (   self,
  sdk_name 
)

◆ xcode_simctl_list()

def webkitpy.common.system.platforminfo.PlatformInfo.xcode_simctl_list (   self)

Member Data Documentation

◆ os_name

webkitpy.common.system.platforminfo.PlatformInfo.os_name

◆ os_version

webkitpy.common.system.platforminfo.PlatformInfo.os_version

The documentation for this class was generated from the following file: