mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
21 lines
466 B
Ruby
21 lines
466 B
Ruby
class Cask::CLI::Install
|
|
def self.run(*cask_names)
|
|
cask_names.each do |cask_name|
|
|
begin
|
|
cask = Cask.load(cask_name)
|
|
Cask::Installer.install(cask)
|
|
Cask::AppLinker.new(cask).link
|
|
rescue CaskUnavailableError => e
|
|
onoe e
|
|
rescue ChecksumMissingError => e
|
|
onoe e
|
|
rescue ChecksumMismatchError => e
|
|
onoe e
|
|
end
|
|
end
|
|
end
|
|
|
|
def self.help
|
|
"installs the cask of the given name"
|
|
end
|
|
end
|