Module: OnSystem::MacOSAndLinux

Included in:
Cask::DSL, Formula, Formula, Homebrew::Service, PourBottleCheck, Resource, SoftwareSpec
Defined in:
extend/on_system.rb,
extend/on_system.rbi

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ void

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.

This method returns an undefined value.

Parameters:

  • base (Class)


154
155
156
157
158
# File 'extend/on_system.rb', line 154

def self.included(base)
  OnSystem.setup_arch_methods(base)
  OnSystem.setup_base_os_methods(base)
  OnSystem.setup_macos_methods(base)
end

Instance Method Details

#on_arch_conditional(arm: nil, intel: nil) ⇒ String?

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.

Parameters:

  • arm (String, nil) (defaults to: nil)
  • intel (String, nil) (defaults to: nil)

Returns:



25
# File 'extend/on_system.rbi', line 25

def on_arch_conditional(arm: nil, intel: nil); end

#on_macos(&block) ⇒ T.type_parameter(:U)

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.

Parameters:

  • block (T.proc.returns(T.type_parameter(:U)))

Returns:

  • (T.type_parameter(:U))


22
# File 'extend/on_system.rbi', line 22

def on_macos(&block); end

#on_system_conditional(macos: nil, linux: nil) ⇒ Array<String, Pathname>, ...

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.

Parameters:

Returns:



15
# File 'extend/on_system.rbi', line 15

def on_system_conditional(macos: nil, linux: nil); end