Module: OnSystem::DSL Private
- Included in:
- MacOSAndLinux, MacOSOnly
- Defined in:
- on_system/dsl.rb
Overview
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.
Platform blocks common to formulae, resources, services and casks.
Instance Attribute Summary collapse
- #on_system_block_min_os ⇒ MacOSVersion? readonly private
Instance Method Summary collapse
- #on_arch_conditional(arm: nil, intel: nil) ⇒ T.type_parameter(:U)? private
- #on_os_blocks_exist? ⇒ Boolean private
-
#on_system_blocks_exist? ⇒ Boolean
private
Whether the definition contains OS or architecture conditionals.
Instance Attribute Details
#on_system_block_min_os ⇒ MacOSVersion? (readonly)
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.
40 41 42 |
# File 'on_system/dsl.rb', line 40 def on_system_block_min_os @on_system_block_min_os end |
Instance Method Details
#on_arch_conditional(arm: nil, intel: nil) ⇒ 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.
47 48 49 50 51 52 53 54 |
# File 'on_system/dsl.rb', line 47 def on_arch_conditional(arm: nil, intel: nil) mark_on_system_block if OnSystem.arch_condition_met?(:arm) arm elsif OnSystem.arch_condition_met?(:intel) intel end end |
#on_os_blocks_exist? ⇒ 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.
37 |
# File 'on_system/dsl.rb', line 37 def on_os_blocks_exist? = @on_os_blocks_exist == true |
#on_system_blocks_exist? ⇒ 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.
Whether the definition contains OS or architecture conditionals.
34 |
# File 'on_system/dsl.rb', line 34 def on_system_blocks_exist? = @on_system_blocks_exist == true |