Module: Custodian::OS

Defined in:
lib/custodian/os.rb

Overview

The OS module encapsulates Custodian’s operating system detection algorithms.

Class Method Summary collapse

Class Method Details

.darwin?Boolean

Determine whether the operating system is darwin.

Returns a boolean describing whether the operating system is darwin.

Returns:

  • (Boolean)


11
12
13
# File 'lib/custodian/os.rb', line 11

def self.darwin?
  RUBY_PLATFORM.downcase.include? "darwin"
end

.linux?Boolean

Determine whether the operating system is linux.

Returns a boolean describing whether the operating system is linux.

Returns:

  • (Boolean)


19
20
21
# File 'lib/custodian/os.rb', line 19

def self.linux?
  RUBY_PLATFORM.downcase.include? "linux"
end