Exception: Hbc::CaskAlreadyInstalledError

Inherits:
AbstractCaskErrorWithToken show all
Defined in:
Library/Homebrew/cask/lib/hbc/exceptions.rb

Instance Attribute Summary

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Methods inherited from AbstractCaskErrorWithToken

#initialize

Constructor Details

This class inherits a constructor from Hbc::AbstractCaskErrorWithToken

Instance Method Details

#to_sObject



46
47
48
49
50
51
52
53
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 46

def to_s
  <<~EOS
    Cask '#{token}' is already installed.

    To re-install #{token}, run:
      #{Formatter.identifier("brew cask reinstall #{token}")}
  EOS
end