Class: RunLoop::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/run_loop/environment.rb

Class Method Summary collapse

Class Method Details

.debug?Boolean

Returns true if debugging is enabled.

Returns:

  • (Boolean)


11
12
13
# File 'lib/run_loop/environment.rb', line 11

def self.debug?
  ENV['DEBUG'] == '1'
end

.uidInteger

Returns the user’s Unix uid.

Returns:

  • (Integer)

    The user’s Unix uid as an integer.



6
7
8
# File 'lib/run_loop/environment.rb', line 6

def self.uid
  `id -u`.strip.to_i
end

.xtc?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/run_loop/environment.rb', line 15

def self.xtc?
  ENV['XAMARIN_TEST_CLOUD'] == '1'
end