From 6302da37f66fe9bb04e95fe67e8529fe0086187d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 27 Feb 2018 12:07:30 +0000 Subject: Add prof and ruby commands. These are imported from Homebrew/homebrew-dev-tools and are both used by maintainers so may be useful for contributors too. --- Library/Homebrew/dev-cmd/ruby.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Library/Homebrew/dev-cmd/ruby.rb (limited to 'Library/Homebrew/dev-cmd/ruby.rb') diff --git a/Library/Homebrew/dev-cmd/ruby.rb b/Library/Homebrew/dev-cmd/ruby.rb new file mode 100755 index 000000000..2df212301 --- /dev/null +++ b/Library/Homebrew/dev-cmd/ruby.rb @@ -0,0 +1,13 @@ +#: * `ruby` []: +#: Run a Ruby instance with Homebrew's libraries loaded. +#: For example: +# brew ruby -e "puts :gcc.f.deps" +# brew ruby script.rb + +module Homebrew + module_function + + def ruby + exec ENV["HOMEBREW_RUBY_PATH"], "-I#{HOMEBREW_LIBRARY_PATH}", "-rglobal", "-rcmd/irb", *ARGV + end +end -- cgit v1.2.3