You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
479 B

class Cask::CLI::Install
def self.run(*args)
cask_names = args.reject { |a| a == '--force' }
force = args.include? '--force'
cask_names.each do |cask_name|
begin
cask = Cask.load(cask_name)
Cask::Installer.install(cask, force)
Cask::AppLinker.new(cask).link
Cask::PkgInstaller.new(cask).install
rescue CaskError => e
onoe e
end
end
end
def self.help
"installs the cask of the given name"
end
end