homebrew-cask-versions/lib/cask/cli/install.rb
2013-12-08 10:36:17 -06:00

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