Module: Custodian::OS
- Defined in:
- lib/custodian/os.rb
Overview
The OS module encapsulates Custodian’s operating system detection algorithms.
Class Method Summary collapse
-
.darwin? ⇒ Boolean
Determine whether the operating system is darwin.
-
.linux? ⇒ Boolean
Determine whether the operating system is linux.
Class Method Details
.darwin? ⇒ Boolean
Determine whether the operating system is darwin.
Returns a boolean describing whether the operating system is darwin.
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.
19 20 21 |
# File 'lib/custodian/os.rb', line 19 def self.linux? RUBY_PLATFORM.downcase.include? "linux" end |