aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2010-02-02 16:03:47 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2010-02-02 16:03:47 -0800
commit7840ea29b44c9dcdae72feddd1a5170bb22fb160 (patch)
tree3ca9548ea7ce968c49421f50ae9b35497a704e5c
parentd53749608e89f80325ce21fdc3ac5468d0b05701 (diff)
downloadrails-7840ea29b44c9dcdae72feddd1a5170bb22fb160.tar.gz
rails-7840ea29b44c9dcdae72feddd1a5170bb22fb160.tar.bz2
rails-7840ea29b44c9dcdae72feddd1a5170bb22fb160.zip
Added "rake about" as a replacement for script/about [DHH]
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/lib/rails/commands/about.rb2
-rw-r--r--railties/lib/rails/tasks/misc.rake7
3 files changed, 9 insertions, 2 deletions
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'