Exception: Cask::CaskAlreadyInstalledError

Inherits:
AbstractCaskErrorWithToken show all
Defined in:
brew/Library/Homebrew/cask/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 Cask::AbstractCaskErrorWithToken

Instance Method Details

#to_sObject



67
68
69
70
71
72
73
74
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 67

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

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