homebrew-cask-versions/lib/brew-cask-cmd.rb
Roland Walker ba12a2aaaa replace brew-cask.rb subcommand with bash shim
The `brew-cask` shim finds and executes `lib/brew-cask-cmd.rb`,
but only if Ruby 2.0+ is found.
2014-12-16 07:23:57 -05:00

16 lines
508 B
Ruby

#!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -EUTF-8:UTF-8
# encoding: UTF-8
require 'pathname'
# todo remove internal Homebrew dependencies and remove this line
$LOAD_PATH.unshift(File.expand_path('../homebrew-fork/Library/Homebrew', Pathname.new(__FILE__).realpath))
$LOAD_PATH.unshift(File.expand_path('..', Pathname.new(__FILE__).realpath))
# todo remove internal Homebrew dependencies and remove this line
require 'global'
require 'cask'
Cask::CLI.process(ARGV)
exit 0