diff options
| author | AnastasiaSulyagina | 2016-08-18 22:11:42 +0300 |
|---|---|---|
| committer | AnastasiaSulyagina | 2016-08-19 14:50:14 +0300 |
| commit | e81f4ab7deeb40308f240be5ea00091fc8786d7a (patch) | |
| tree | b5418f9149de71c0f05f90cb2b39ab47f46e27b4 /Library/Homebrew/cask/developer/examples/brewcask-dumpcask.rb | |
| parent | 5c7c9de669025bbe4cad9829be39c5cf3b31ad25 (diff) | |
| download | brew-e81f4ab7deeb40308f240be5ea00091fc8786d7a.tar.bz2 | |
init
Diffstat (limited to 'Library/Homebrew/cask/developer/examples/brewcask-dumpcask.rb')
| -rwxr-xr-x | Library/Homebrew/cask/developer/examples/brewcask-dumpcask.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/developer/examples/brewcask-dumpcask.rb b/Library/Homebrew/cask/developer/examples/brewcask-dumpcask.rb new file mode 100755 index 000000000..8e209f941 --- /dev/null +++ b/Library/Homebrew/cask/developer/examples/brewcask-dumpcask.rb @@ -0,0 +1,16 @@ +# 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_token = ARGV.shift + +cask = Hbc.load(cask_token) + +Hbc.debug = true +cask.dumpcask |
