diff options
Diffstat (limited to 'railties/bin')
-rw-r--r-- | railties/bin/destroy | 3 | ||||
-rwxr-xr-x | railties/bin/generate | 3 | ||||
-rwxr-xr-x | railties/bin/rails | 3 | ||||
-rw-r--r-- | railties/bin/update | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/railties/bin/destroy b/railties/bin/destroy index ba6dc7703f..6c1848ce1e 100644 --- a/railties/bin/destroy +++ b/railties/bin/destroy @@ -1,5 +1,8 @@ #!/usr/local/bin/ruby require File.dirname(__FILE__) + '/../config/environment' require 'rails_generator' +require 'rails_generator/simple_logger' require 'rails_generator/scripts/destroy' + +Rails::Generator::Base.logger = Rails::Generator::SimpleLogger.new(STDOUT) Rails::Generator::Scripts::Destroy.new.run(ARGV) diff --git a/railties/bin/generate b/railties/bin/generate index dde69e61a1..8bce002510 100755 --- a/railties/bin/generate +++ b/railties/bin/generate @@ -1,5 +1,8 @@ #!/usr/local/bin/ruby require File.dirname(__FILE__) + '/../config/environment' require 'rails_generator' +require 'rails_generator/simple_logger' require 'rails_generator/scripts/generate' + +Rails::Generator::Base.logger = Rails::Generator::SimpleLogger.new(STDOUT) Rails::Generator::Scripts::Generate.new.run(ARGV) diff --git a/railties/bin/rails b/railties/bin/rails index 3d23b99609..da9b2af041 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -1,4 +1,7 @@ require File.dirname(__FILE__) + '/../lib/rails_generator' +require 'rails_generator/simple_logger' require 'rails_generator/scripts/generate' + +Rails::Generator::Base.logger = Rails::Generator::SimpleLogger.new(STDOUT) Rails::Generator::Base.use_application_sources! Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app') diff --git a/railties/bin/update b/railties/bin/update index 430d325b07..64cc49cf02 100644 --- a/railties/bin/update +++ b/railties/bin/update @@ -1,5 +1,8 @@ #!/usr/local/bin/ruby require File.dirname(__FILE__) + '/../config/environment' require 'rails_generator' +require 'rails_generator/simple_logger' require 'rails_generator/scripts/update' + +Rails::Generator::Base.logger = Rails::Generator::SimpleLogger.new(STDOUT) Rails::Generator::Scripts::Update.new.run(ARGV) |