Module: XamarinTestCloud::Environment
- Defined in:
- lib/xamarin-test-cloud/environment.rb
Class Method Summary collapse
-
.debug? ⇒ Boolean
Returns true if debugging is enabled.
-
.linux_env? ⇒ Boolean
Return true if Linux environment.
-
.macos_env? ⇒ Boolean
Returns true if MacOS environment.
-
.windows_env? ⇒ Boolean
Returns true if Windows environment.
-
.xtc_endpoint ⇒ Object
Returns the XTC_ENDPOINT.
-
.xtc_password ⇒ Object
Returns the XTC_PASSWORD.
-
.xtc_username ⇒ Object
Returns the XTC_USERNAME.
Class Method Details
.debug? ⇒ Boolean
Returns true if debugging is enabled.
27 28 29 |
# File 'lib/xamarin-test-cloud/environment.rb', line 27 def self.debug? ENV["DEBUG"] == "1" end |
.linux_env? ⇒ Boolean
Return true if Linux environment
22 23 24 |
# File 'lib/xamarin-test-cloud/environment.rb', line 22 def self.linux_env? !self.macos_env? && !self.windows_env? end |
.macos_env? ⇒ Boolean
Returns true if MacOS environment
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
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_endpoint ⇒ Object
Returns the XTC_ENDPOINT
32 33 34 |
# File 'lib/xamarin-test-cloud/environment.rb', line 32 def self.xtc_endpoint Environment.value_of_env("XTC_ENDPOINT") end |
.xtc_password ⇒ Object
Returns the XTC_PASSWORD
42 43 44 |
# File 'lib/xamarin-test-cloud/environment.rb', line 42 def self.xtc_password Environment.value_of_env("XTC_PASSWORD") end |
.xtc_username ⇒ Object
Returns the XTC_USERNAME
37 38 39 |
# File 'lib/xamarin-test-cloud/environment.rb', line 37 def self.xtc_username Environment.value_of_env("XTC_USERNAME") end |