aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/fileutils.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-03-10 17:02:06 +0000
committerMike McQuaid2013-03-11 18:26:25 +0000
commit6c32a0d075a975e33a7b02d736c537869cd54a9a (patch)
tree223dbc8d222fa1cd38bee728e9f9920c315cef29 /Library/Homebrew/extend/fileutils.rb
parentbcf3004009f1b424f532009daed4a6a3d1e88706 (diff)
downloadhomebrew-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.rb6
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