mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
Move ruby methods to FileUtils extension
This commit is contained in:
1 parent
60984fa58e
commit
37f198542d
2 files changed
+9
-12
No files matched your search
@@ -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
|
||||
@@ -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 } \
|
||||
|
||||
Reference in new issue
Block a user