aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilovezfs2017-10-13 00:35:05 -0700
committerilovezfs2017-10-13 02:01:28 -0700
commit82afe5d7f7855993a5410beba68bedc01492c846 (patch)
treeb75a2deb93da243e4dff9ee62a1454f2fb0d0f2a
parent30b84ac6f39d2f0cd3e3993959a11888a047afd5 (diff)
downloadbrew-82afe5d7f7855993a5410beba68bedc01492c846.tar.bz2
fileutils: deprecate rake DSL
superenv and the `:ruby` requirement make a `rake` DSL unnecessary.
-rw-r--r--Library/Homebrew/compat/formula.rb5
-rw-r--r--Library/Homebrew/extend/fileutils.rb5
2 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/compat/formula.rb b/Library/Homebrew/compat/formula.rb
index 853a38706..57ab84a76 100644
--- a/Library/Homebrew/compat/formula.rb
+++ b/Library/Homebrew/compat/formula.rb
@@ -78,4 +78,9 @@ class Formula
def startup_plist
odeprecated "Formula#startup_plist", "Formula#plist"
end
+
+ def rake(*args)
+ # odeprecated "FileUtils#rake", "system \"rake\""
+ system "rake", *args
+ end
end
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index ed5bfe6c3..34ef3869f 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -101,11 +101,6 @@ module FileUtils
system Formulary.factory("scons").opt_bin/"scons", *args
end
- # Run the `rake` from the `ruby` Homebrew is using rather than whatever is in the `PATH`.
- def rake(*args)
- system RUBY_BIN/"rake", *args
- end
-
# Run `make` 3.81 or newer.
# Uses the system make on Leopard and newer, and the
# path to the actually-installed make on Tiger or older.