Class: Hbc::CLI::Reinstall

Inherits:
Install show all
Defined in:
Library/Homebrew/cask/lib/hbc/cli/reinstall.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Install

#initialize, needs_init?

Methods inherited from AbstractCommand

abstract?, command_name, #initialize, needs_init?, run, visible

Methods included from Options

included, #process_arguments

Constructor Details

This class inherits a constructor from Hbc::CLI::Install

Class Method Details

.helpObject



14
15
16
# File 'Library/Homebrew/cask/lib/hbc/cli/reinstall.rb', line 14

def self.help
  "reinstalls the given Cask"
end

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
# File 'Library/Homebrew/cask/lib/hbc/cli/reinstall.rb', line 4

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?).reinstall
  end
end