homebrew-cask-versions/lib/brew-cask-cmd.rb
Roland Walker 202d6019f8 Move all code under an Hbc:: namespace
* convert existing Cask:: namespace to Hbc::
* move Homebrew-fork code under Hbc::
* move freestanding classes such as Tty and TopologicalHash under Hbc::
* recast HOMEBREW_CASK_ constants as HBC_
* modify our Homebrew Formula for backward compatibility
* devscripts and dev docs
2015-01-02 07:27:03 -05:00

19 lines
453 B
Ruby

#!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -EUTF-8:UTF-8
# encoding: UTF-8
# just in case
if RUBY_VERSION.to_i < 2
raise 'brew-cask: Ruby 2.0 or greater is required.'
end
require 'pathname'
$LOAD_PATH.unshift(File.expand_path('..', Pathname.new(__FILE__).realpath))
# todo remove internal Homebrew dependencies and remove this line
require 'vendor/homebrew-fork/global'
require 'hbc'
Hbc::CLI.process(ARGV)
exit 0