Class Mario::Platform
In: lib/mario/platform.rb
Parent: Object

Methods

Classes and Modules

Class Mario::Platform::BSD
Class Mario::Platform::Cygwin
Class Mario::Platform::Darwin
Class Mario::Platform::Leopard
Class Mario::Platform::Linux
Class Mario::Platform::OperatingSystemNotRecognized
Class Mario::Platform::SnowLeopard
Class Mario::Platform::Solaris
Class Mario::Platform::Tiger
Class Mario::Platform::Windows7
Class Mario::Platform::WindowsNT

Public Class methods

Checks an os class against {target_os}

@return [true, false]

Checks a list of possible operating system classes to see if their target os strings match the {target_os} value

@return [Class]

Returns an instance of the current operating system class as determined by {check_group} against all operating system classes provided by {targets}

@return [OperatingSystem]

Checks if the current platform is part of the {darwin_group} and returns that class

@return [Class]

A list of the different Darwin Versions

@return [Array[Class]]

Returns the value of the currently forced operating system class if any

@return [Class]

Allows the user to force Mario to report the operating system as one of the provided operatin system classes

Allows the setting of a logging mechanism, defaults to STDOUT

@return [Logger]

Checks if the current platform is part of the {nix_group} and returns that class

@return [Class]

A list of unix like operating system classes

@return [Array[Class]]

Uses the forced class target os string if provided otherwise uses the target_os rbconfig hash element

@return [String]

The union of the {nix_group} and {windows_group} operating system class sets, each operating system test method ( ie linux? ) is built from this set of class constants

@return [Array[Class]]

Checks if the current platform is part of the {windows_group} and returns that class

@return [Class]

A list of windows operating system classes

@return [Array[Class]]

[Validate]