Spec-Zone.ru › Homebrew

Module: OS::Linux::Cask::Installer Private

Extended by:
T::Helpers
Included in:
Cask::Installer
Defined in:
extend/os/linux/cask/installer.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

  • #check_stanza_os_requirements ⇒ void private

Instance Method Details

#check_stanza_os_requirements ⇒ 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.

Raises:

  • (::Cask::CaskError)


13
14
15
16
17
# File 'extend/os/linux/cask/installer.rb', line 13

def check_stanza_os_requirements
  return if !cask.depends_on.requires_macos? && artifacts.all? { |artifact| supported_artifact?(artifact) }

  raise ::Cask::CaskError, "#{cask}: This cask requires macOS."
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/OS/Linux/Cask/Installer.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API