Class: RunLoop::Environment
- Inherits:
-
Object
- Object
- RunLoop::Environment
- Defined in:
- lib/run_loop/environment.rb
Class Method Summary collapse
-
.debug? ⇒ Boolean
Returns true if debugging is enabled.
-
.uid ⇒ Integer
Returns the user’s Unix uid.
- .xtc? ⇒ Boolean
Class Method Details
.debug? ⇒ Boolean
Returns true if debugging is enabled.
11 12 13 |
# File 'lib/run_loop/environment.rb', line 11 def self.debug? ENV['DEBUG'] == '1' end |
.uid ⇒ Integer
Returns the user’s Unix uid.
6 7 8 |
# File 'lib/run_loop/environment.rb', line 6 def self.uid `id -u`.strip.to_i end |
.xtc? ⇒ Boolean
15 16 17 |
# File 'lib/run_loop/environment.rb', line 15 def self.xtc? ENV['XAMARIN_TEST_CLOUD'] == '1' end |