mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-18 22:06:41 -06:00
* was already done, but inconsistently * this style follows homebrew Formula * covers user-facing messages, test titles, comments * some related minor orthography is included, such as the consistent spelling of our project name as "homebrew-cask" * grammar nits
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
|