Module: OS::Linux::Cask::Installer Private
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
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.
13 14 15 16 17 18 19 |
# File 'extend/os/linux/cask/installer.rb', line 13 def check_stanza_os_requirements return unless artifacts.any? do |artifact| ::Cask::Artifact::MACOS_ONLY_ARTIFACTS.include?(artifact.class) end raise ::Cask::CaskError, "macOS is required for this software." end |