Class: Cask::Cmd::Reinstall

Inherits:
Install show all
Defined in:
brew/Library/Homebrew/cask/cmd/reinstall.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Install

#initialize

Methods inherited from AbstractCommand

abstract?, command_name, #initialize, run, visible

Methods included from Homebrew::Search

#query_regexp, #search_casks, #search_descriptions, #search_formulae, #search_taps

Methods included from Options

#process_arguments

Constructor Details

This class inherits a constructor from Cask::Cmd::Install

Class Method Details

.helpObject



17
18
19
# File 'brew/Library/Homebrew/cask/cmd/reinstall.rb', line 17

def self.help
  "reinstalls the given Cask"
end

Instance Method Details

#runObject



6
7
8
9
10
11
12
13
14
15
# File 'brew/Library/Homebrew/cask/cmd/reinstall.rb', line 6

def run
  casks.each do |cask|
    Installer.new(cask, binaries:       binaries?,
                        verbose:        verbose?,
                        force:          force?,
                        skip_cask_deps: skip_cask_deps?,
                        require_sha:    require_sha?,
                        quarantine:     quarantine?).reinstall
  end
end