Module: XamarinTestCloud::Environment

Defined in:
lib/xamarin-test-cloud/environment.rb

Class Method Summary collapse

Class Method Details

.debug?Boolean

Returns true if debugging is enabled.

Returns:

  • (Boolean)

22
23
24
# File 'lib/xamarin-test-cloud/environment.rb', line 22

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

.macos_env?Boolean

Returns true if MacOS environment

Returns:

  • (Boolean)

14
15
16
17
18
19
# File 'lib/xamarin-test-cloud/environment.rb', line 14

def self.macos_env?
  if @@macos_env.nil?
    @@macos_env = Environment.host_os_is_darwin?
  end
  @@macos_env
end

.windows_env?Boolean

Returns true if Windows environment

Returns:

  • (Boolean)

6
7
8
9
10
11
# File 'lib/xamarin-test-cloud/environment.rb', line 6

def self.windows_env?
  if @@windows_env.nil?
    @@windows_env = Environment.host_os_is_win?
  end
  @@windows_env
end

.xtc_endpointObject

Returns the XTC_ENDPOINT


27
28
29
# File 'lib/xamarin-test-cloud/environment.rb', line 27

def self.xtc_endpoint
  Environment.value_of_env("XTC_ENDPOINT")
end

.xtc_passwordObject

Returns the XTC_PASSWORD


37
38
39
# File 'lib/xamarin-test-cloud/environment.rb', line 37

def self.xtc_password
  Environment.value_of_env("XTC_PASSWORD")
end

.xtc_usernameObject

Returns the XTC_USERNAME


32
33
34
# File 'lib/xamarin-test-cloud/environment.rb', line 32

def self.xtc_username
  Environment.value_of_env("XTC_USERNAME")
end