Move ruby methods to FileUtils extension

This commit is contained in:
Jack Nagel committed 2013-02-02 11:24:55 -06:00
1 parent 60984fa58e
commit 37f198542d
2 files changed
+9 -12

No files matched your search

+9
View File
@@ -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
-12
View File
@@ -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 } \