From 0caf8ffd7d19a3a3c8d7eca158b4ea66185ce4ae Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 11 Apr 2016 12:20:53 +0200 Subject: revises fileutils dependencies in railties With the exception of what is loaded in active_support/rails, each file is responsible for its own dependencies. You cannot rely on runtime order of execution. --- railties/lib/rails/tasks/framework.rake | 1 + railties/lib/rails/tasks/restart.rake | 2 ++ railties/lib/rails/tasks/tmp.rake | 2 ++ 3 files changed, 5 insertions(+) (limited to 'railties/lib/rails/tasks') diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 61fb8311a5..b28d47ef12 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -1,3 +1,4 @@ +require 'fileutils' require 'active_support/deprecation' namespace :app do diff --git a/railties/lib/rails/tasks/restart.rake b/railties/lib/rails/tasks/restart.rake index 7e15bb55a1..4f013484d3 100644 --- a/railties/lib/rails/tasks/restart.rake +++ b/railties/lib/rails/tasks/restart.rake @@ -1,3 +1,5 @@ +require 'fileutils' + desc "Restart app by touching tmp/restart.txt" task :restart do FileUtils.mkdir_p('tmp') diff --git a/railties/lib/rails/tasks/tmp.rake b/railties/lib/rails/tasks/tmp.rake index 22785da557..deadb43892 100644 --- a/railties/lib/rails/tasks/tmp.rake +++ b/railties/lib/rails/tasks/tmp.rake @@ -1,3 +1,5 @@ +require 'fileutils' + namespace :tmp do desc "Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear)" task clear: ["tmp:cache:clear", "tmp:sockets:clear"] -- cgit v1.2.3