homebrew-cask-versions/developer/examples/brewcask-dumpcask.rb
Roland Walker c9bedbd280 make example external command work again
`brewcask-dumpcask.rb` was broken by #4964.
2014-06-21 17:01:59 -04:00

16 lines
314 B
Ruby
Executable file

# brewcask-dumpcask
#
# A trivial `brew cask` external command, implemented in Ruby.
# Loads a Cask definition, then dumps it in YAML format.
# Example usage:
#
# brew cask dumpcask google-chrome
#
command_name = ARGV.shift
cask_name = ARGV.shift
cask = Cask.load(cask_name)
Cask.debug = true
cask.dumpcask