From 7840ea29b44c9dcdae72feddd1a5170bb22fb160 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 2 Feb 2010 16:03:47 -0800 Subject: Added "rake about" as a replacement for script/about [DHH] --- railties/CHANGELOG | 2 ++ railties/lib/rails/commands/about.rb | 2 -- railties/lib/rails/tasks/misc.rake | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 railties/lib/rails/commands/about.rb diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 4176d7fcad..0b67479742 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *Edge* +* 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 diff --git a/railties/lib/rails/commands/about.rb b/railties/lib/rails/commands/about.rb deleted file mode 100644 index d4c30bbeb2..0000000000 --- a/railties/lib/rails/commands/about.rb +++ /dev/null @@ -1,2 +0,0 @@ -require 'rails/info' -puts Rails::Info diff --git a/railties/lib/rails/tasks/misc.rake b/railties/lib/rails/tasks/misc.rake index 4696f02a98..48fce92215 100644 --- a/railties/lib/rails/tasks/misc.rake +++ b/railties/lib/rails/tasks/misc.rake @@ -13,6 +13,13 @@ task :secret do puts ActiveSupport::SecureRandom.hex(64) end +desc 'Explain the current environment' +task :about do + $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" + require 'rails/info' + puts Rails::Info +end + 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' -- cgit v1.2.3