Module: OS::Linux::SimulateSystem::ClassMethods Private
- Defined in:
 - extend/os/linux/simulate_system.rb
 
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #current_os ⇒ Symbol private
 - #os ⇒ Symbol? private
 - #simulating_or_running_on_linux? ⇒ Boolean private
 
Instance Method Details
#current_os ⇒ Symbol
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
      22 23 24  | 
    
      # File 'extend/os/linux/simulate_system.rb', line 22 def current_os os || :linux end  | 
  
#os ⇒ Symbol?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
      9 10 11 12 13 14  | 
    
      # File 'extend/os/linux/simulate_system.rb', line 9 def os @os ||= T.let(nil, T.nilable(Symbol)) return :macos if @os.blank? && Homebrew::EnvConfig.simulate_macos_on_linux? @os end  | 
  
#simulating_or_running_on_linux? ⇒ Boolean
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
      17 18 19  | 
    
      # File 'extend/os/linux/simulate_system.rb', line 17 def simulating_or_running_on_linux? os.blank? || os == :linux end  |