mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 14:26:45 -06:00
18 lines
487 B
Ruby
18 lines
487 B
Ruby
class Cask::CLI::Home < Cask::CLI::Base
|
|
def self.run(*cask_names)
|
|
if cask_names.empty?
|
|
odebug "Opening project homepage"
|
|
system "/usr/bin/open", '--', 'http://caskroom.io/'
|
|
else
|
|
cask_names.each do |cask_name|
|
|
odebug "Opening homepage for Cask #{cask_name}"
|
|
cask = Cask.load(cask_name)
|
|
system "/usr/bin/open", '--', cask.homepage
|
|
end
|
|
end
|
|
end
|
|
|
|
def self.help
|
|
"opens the homepage of the cask of the given name"
|
|
end
|
|
end
|