Skip to content

Commit

Permalink
fileutils: deprecate rake DSL
Browse files Browse the repository at this point in the history
superenv and the `:ruby` requirement make a `rake` DSL unnecessary.
  • Loading branch information
ilovezfs committed Oct 13, 2017
1 parent 30b84ac commit 82afe5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Library/Homebrew/compat/formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,9 @@ def python(_options = {}, &_block)
def startup_plist
odeprecated "Formula#startup_plist", "Formula#plist"
end

def rake(*args)
# odeprecated "FileUtils#rake", "system \"rake\""
system "rake", *args
end
end
5 changes: 0 additions & 5 deletions Library/Homebrew/extend/fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ def scons(*args)
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.
Expand Down

0 comments on commit 82afe5d

Please sign in to comment.