mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
b8d1dbf993
commit
0caf8ffd7d
8 changed files with 13 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
require 'fileutils'
|
||||
require 'yaml'
|
||||
require 'active_support/core_ext/hash/keys'
|
||||
require 'active_support/core_ext/object/blank'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require "active_support/notifications"
|
||||
require "active_support/dependencies"
|
||||
require "active_support/descendants_tracker"
|
||||
require 'fileutils'
|
||||
require 'active_support/notifications'
|
||||
require 'active_support/dependencies'
|
||||
require 'active_support/descendants_tracker'
|
||||
|
||||
module Rails
|
||||
class Application
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'fileutils'
|
||||
|
||||
module Rails
|
||||
module DevCaching # :nodoc:
|
||||
class << self
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require 'fileutils'
|
||||
require 'thor/actions'
|
||||
|
||||
module Rails
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require 'fileutils'
|
||||
require 'digest/md5'
|
||||
require 'active_support/core_ext/string/strip'
|
||||
require 'rails/version' unless defined?(Rails::VERSION)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require 'fileutils'
|
||||
require 'active_support/deprecation'
|
||||
|
||||
namespace :app do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'fileutils'
|
||||
|
||||
desc "Restart app by touching tmp/restart.txt"
|
||||
task :restart do
|
||||
FileUtils.mkdir_p('tmp')
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue