diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-24 19:50:09 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-24 19:50:09 +0100 |
commit | 1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91 (patch) | |
tree | 4854eec0514d44e3134af77a80b8ca73b4c601d7 /railties/lib | |
parent | b7568e77d79cba9202b961cbe2a822b8b6b34bb0 (diff) | |
download | rails-1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91.tar.gz rails-1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91.tar.bz2 rails-1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91.zip |
Add a rake task to generate dispatchers : rake rails:generate_dispatchers
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/framework.rake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake index 4cf174b15b..df080e94ac 100644 --- a/railties/lib/tasks/framework.rake +++ b/railties/lib/tasks/framework.rake @@ -124,5 +124,13 @@ namespace :rails do puts "#{old_style} has been renamed to #{new_style}, update your SCM as necessary" end end + + desc "Generate dispatcher files in RAILS_ROOT/public" + task :generate_dispatchers do + require 'railties_path' + FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.fcgi', RAILS_ROOT + '/public/dispatch.fcgi') + FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.rb', RAILS_ROOT + '/public/dispatch.rb') + FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.rb', RAILS_ROOT + '/public/dispatch.cgi') + end end end |