homebrew-cask-versions/lib/cask/cli/home.rb
Roland Walker 707db75505 standardize Cask (capitalized) when used as noun
* 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
2014-10-08 10:39:51 -04:00

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