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: nil, force: nil, skip_cask_deps: nil, binaries: nil, require_sha: nil, quarantine: nil, zap: nil) ⇒ Object

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.



6
7
8
9
10
11
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 6

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