aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb
blob: 408be134dad97ff45b5a66e0d49a8503a11a55f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Hbc
  class CLI
    class Reinstall < Install
      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

      def self.help
        "reinstalls the given Cask"
      end
    end
  end
end