Class: Cask::Reinstall Private

Inherits:
Object show all
Defined in:
cask/reinstall.rb

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

Class Method Summary collapse

Class Method Details

.reinstall_casks(*casks, verbose: false, force: false, skip_cask_deps: false, binaries: false, require_sha: false, quarantine: false, zap: false) ⇒ 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.

Parameters:

  • casks (::Cask::Cask)
  • verbose (Boolean) (defaults to: false)
  • force (Boolean) (defaults to: false)
  • skip_cask_deps (Boolean) (defaults to: false)
  • binaries (Boolean) (defaults to: false)
  • require_sha (Boolean) (defaults to: false)
  • quarantine (Boolean) (defaults to: false)
  • zap (Boolean) (defaults to: false)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'cask/reinstall.rb', line 12

def self.reinstall_casks(
  *casks,
  verbose: false,
  force: false,
  skip_cask_deps: false,
  binaries: false,
  require_sha: false,
  quarantine: false,
  zap: false
)
  require "cask/installer"

  quarantine = true if quarantine.nil?

  casks.each do |cask|
    Installer
      .new(cask, binaries:, verbose:, force:, skip_cask_deps:, require_sha:, reinstall: true, quarantine:, zap:)
      .install
  end
end