diff options
| author | Mike McQuaid | 2013-03-10 17:02:06 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-11 18:26:25 +0000 |
| commit | 6c32a0d075a975e33a7b02d736c537869cd54a9a (patch) | |
| tree | 223dbc8d222fa1cd38bee728e9f9920c315cef29 /Library/Homebrew/extend/fileutils.rb | |
| parent | bcf3004009f1b424f532009daed4a6a3d1e88706 (diff) | |
| download | homebrew-6c32a0d075a975e33a7b02d736c537869cd54a9a.tar.bz2 | |
Add current Ruby globals.
Allows access to the Ruby path. Needed for Linux
porting.
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index a7a1ae41c..231d3b769 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -81,13 +81,11 @@ module FileUtils extend self end end - RUBY_BIN = '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin' - def rake *args - system "#{RUBY_BIN}/rake", *args + system RUBY_BIN/'rake', *args end def ruby *args - system "#{RUBY_BIN}/ruby", *args + system RUBY_PATH, *args end end |
