aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/fileutils.rb9
-rw-r--r--Library/Homebrew/formula.rb12
2 files changed, 9 insertions, 12 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index 8792c23b5..a7a1ae41c 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -81,4 +81,13 @@ 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
+ end
+
+ def ruby *args
+ system "#{RUBY_BIN}/ruby", *args
+ end
end
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 29b9f9daa..33e3ea93e 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -289,18 +289,6 @@ class Formula
]
end
- def ruby_bin
- '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin'
- end
-
- def rake *args
- system "#{ruby_bin}/rake", *args
- end
-
- def ruby *args
- system "#{ruby_bin}/ruby", *args
- end
-
def self.class_s name
#remove invalid characters and then camelcase it
name.capitalize.gsub(/[-_.\s]([a-zA-Z0-9])/) { $1.upcase } \