1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
David Heinemeier Hansson 2010-02-02 16:03:47 -08:00
parent d53749608e
commit 7840ea29b4
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -1,2 +0,0 @@
require 'rails/info'
puts Rails::Info

View file

@ -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'