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

上级 d5374960
*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
......
require 'rails/info'
puts Rails::Info
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册