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
commitd39280bdf7aca09ea7c6d9acf927bd95b6d1e499 (patch)
tree709c06b91052d0cbb0180fbb2eb5c874c50e957a /Library/Homebrew/extend/fileutils.rb
parentcac86a4f0b0588aea6f0dd4c3daff247aeead3ca (diff)
downloadbrew-d39280bdf7aca09ea7c6d9acf927bd95b6d1e499.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