mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
this delegates to homebrew's uninstall to get its work done. vanilla `brew uninstall` actually works, but this gives us a more consistent interface. as discussed in #47
21 lines
327 B
Ruby
21 lines
327 B
Ruby
class CaskNotInstalledError < RuntimeError
|
|
attr_reader :cask
|
|
def initialize cask
|
|
@cask = cask
|
|
end
|
|
|
|
def to_s
|
|
"#{cask} is not installed"
|
|
end
|
|
end
|
|
|
|
class CaskUnavailableError < RuntimeError
|
|
attr_reader :name
|
|
def initialize name
|
|
@name = name
|
|
end
|
|
|
|
def to_s
|
|
"No available cask for #{name}"
|
|
end
|
|
end
|