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.

Constant Summary collapse

LINUX_INVALID_ARTIFACTS =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

[
  ::Cask::Artifact::App,
  ::Cask::Artifact::AudioUnitPlugin,
  ::Cask::Artifact::Colorpicker,
  ::Cask::Artifact::Dictionary,
  ::Cask::Artifact::InputMethod,
  ::Cask::Artifact::Installer,
  ::Cask::Artifact::InternetPlugin,
  ::Cask::Artifact::KeyboardLayout,
  ::Cask::Artifact::Mdimporter,
  ::Cask::Artifact::Pkg,
  ::Cask::Artifact::Prefpane,
  ::Cask::Artifact::Qlplugin,
  ::Cask::Artifact::ScreenSaver,
  ::Cask::Artifact::Service,
  ::Cask::Artifact::Suite,
  ::Cask::Artifact::VstPlugin,
  ::Cask::Artifact::Vst3Plugin,
].freeze

Instance Method Summary collapse

Instance Method Details

#check_stanza_os_requirementsvoid

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:



33
34
35
36
37
38
39
# File 'extend/os/linux/cask/installer.rb', line 33

def check_stanza_os_requirements
  return unless artifacts.any? do |artifact|
    LINUX_INVALID_ARTIFACTS.include?(artifact.class)
  end

  raise ::Cask::CaskError, "macOS is required for this software."
end