mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 14:26:45 -06:00
15 lines
386 B
Ruby
15 lines
386 B
Ruby
class Cask::CLI::Install
|
|
def self.run(*args)
|
|
raise CaskUnspecifiedError if args.empty?
|
|
cask_names = args.reject { |a| a.chars.first == '-' }
|
|
force = args.include? '--force'
|
|
cask_names.each do |cask_name|
|
|
cask = Cask.load(cask_name)
|
|
Cask::Installer.new(cask).install(force)
|
|
end
|
|
end
|
|
|
|
def self.help
|
|
"installs the cask of the given name"
|
|
end
|
|
end
|