Browse files

Added "rake about" as a replacement for script/about [DHH]

  • Loading branch information...
1 parent d537496 commit 7840ea29b44c9dcdae72feddd1a5170bb22fb160 @dhh dhh committed Feb 3, 2010
Showing with 9 additions and 2 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +0 −2 railties/lib/rails/commands/about.rb
  3. +7 −0 railties/lib/rails/tasks/misc.rake
@@ -1,5 +1,7 @@
+* Added "rake about" as a replacement for script/about [DHH]
* Removed all the default commands in script/* and replaced them with script/rails and a rails command that'll act the same when run from within the app [DHH]. Example:
./script/generate scaffold post title:string can now be called as rails g scaffold post title:string
@@ -1,2 +0,0 @@
-require 'rails/info'
-puts Rails::Info
@@ -13,6 +13,13 @@ task :secret do
puts ActiveSupport::SecureRandom.hex(64)
+desc 'Explain the current environment'
+task :about do
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
+ require 'rails/info'
+ puts Rails::Info
namespace :time do
namespace :zones do
desc 'Displays names of all time zones recognized by the Rails TimeZone class, grouped by offset. Results can be filtered with optional OFFSET parameter, e.g., OFFSET=-6'

0 comments on commit 7840ea2

Please sign in to comment.