Module: DependsOn::DSL Private

Included in:
Cask::DSL::DependsOn, SoftwareSpec
Defined in:
depends_on/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.

Track platform support and validate OS requirements for the active architecture.

Instance Method Summary collapse

Instance Method Details

#depends_on_linux_set_top_level? ⇒ 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.

Returns:

  • (Boolean)


21
# File 'depends_on/dsl.rb', line 21

def depends_on_linux_set_top_level? = @linux_set_top_level == true

#depends_on_macos_set_in_block? ⇒ Boolean Also known as: depends_on_macos_set_in_block

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.

Returns:

  • (Boolean)


24
# File 'depends_on/dsl.rb', line 24

def depends_on_macos_set_in_block? = @macos_set_in_block == true

#depends_on_macos_set_top_level? ⇒ 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.

Returns:

  • (Boolean)


18
# File 'depends_on/dsl.rb', line 18

def depends_on_macos_set_top_level? = @top_level_macos.present?

#requires_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.

Returns:

  • (Boolean)


15
# File 'depends_on/dsl.rb', line 15

def requires_linux? = @required_os == :linux

#requires_macos? ⇒ 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.

Returns:

  • (Boolean)


12
# File 'depends_on/dsl.rb', line 12

def requires_macos? = @required_os == :macos