diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-12 21:59:26 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-25 21:31:45 +0200 |
commit | 03c982fa3417fc49a380eeb88fdd26fdd4bae46b (patch) | |
tree | bf60ebe8bd609876bc381893d20b450b3a023917 /railties/lib/rails/commands/rake_proxy.rb | |
parent | 4e106ee08b36c2047a6af3829f3497459590c98a (diff) | |
download | rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.tar.gz rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.tar.bz2 rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.zip |
Remove the old command files.
Wash out your old! These adhoc scripts are replaced by the new
commands.
Diffstat (limited to 'railties/lib/rails/commands/rake_proxy.rb')
-rw-r--r-- | railties/lib/rails/commands/rake_proxy.rb | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/railties/lib/rails/commands/rake_proxy.rb b/railties/lib/rails/commands/rake_proxy.rb deleted file mode 100644 index f8da71831a..0000000000 --- a/railties/lib/rails/commands/rake_proxy.rb +++ /dev/null @@ -1,41 +0,0 @@ -require "active_support" - -module Rails - module RakeProxy #:nodoc: - private - def run_rake_task(command) - require_rake - - ARGV.unshift(command) # Prepend the command, so Rake knows how to run it. - - Rake.application.standard_exception_handling do - Rake.application.init("rails") - Rake.application.load_rakefile - Rake.application.top_level - end - end - - def rake_tasks - require_rake - - return @rake_tasks if defined?(@rake_tasks) - - ActiveSupport::Deprecation.silence do - require_application_and_environment! - end - - Rake::TaskManager.record_task_metadata = true - Rake.application.instance_variable_set(:@name, "rails") - load_tasks - @rake_tasks = Rake.application.tasks.select(&:comment) - end - - def formatted_rake_tasks - rake_tasks.map { |t| [ t.name_with_args, t.comment ] } - end - - def require_rake - require "rake" # Defer booting Rake until we know it's needed. - end - end -end |