aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/install.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-02 07:29:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-02 07:29:08 +0000
commit8d488264b5177966217982740cdd152bfc4f8903 (patch)
tree4c83cd8b4b1f5c42d96e2a484664692cf87df483 /actionpack/install.rb
parent998ab50974403ddc1cd166a3fe97528d344b1db4 (diff)
downloadrails-8d488264b5177966217982740cdd152bfc4f8903.tar.gz
rails-8d488264b5177966217982740cdd152bfc4f8903.tar.bz2
rails-8d488264b5177966217982740cdd152bfc4f8903.zip
Added install.rbs for all frameworks and made all of them generic enough not to require maintenance #1013, #1012
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/install.rb')
-rw-r--r--actionpack/install.rb85
1 files changed, 8 insertions, 77 deletions
diff --git a/actionpack/install.rb b/actionpack/install.rb
index 1ca1c74016..2e1eba7624 100644
--- a/actionpack/install.rb
+++ b/actionpack/install.rb
@@ -18,82 +18,13 @@ unless $sitedir
end
end
-makedirs = %w{ action_controller/assertions action_controller/cgi_ext
- action_controller/session action_controller/support
- action_controller/templates action_controller/templates/rescues
- action_controller/templates/scaffolds
- action_view/helpers action_view/vendor action_view/vendor/builder
-}
-
-
-makedirs.each {|f| File::makedirs(File.join($sitedir, *f.split(/\//)))}
-
-# deprecated files that should be removed
-# deprecated = %w{ }
-
-# files to install in library path
-files = %w-
- action_controller.rb
- action_controller/assertions/action_pack_assertions.rb
- action_controller/assertions/active_record_assertions.rb
- action_controller/base.rb
- action_controller/benchmarking.rb
- action_controller/cgi_ext/cgi_ext.rb
- action_controller/cgi_ext/cgi_methods.rb
- action_controller/cgi_ext/cookie_performance_fix.rb
- action_controller/cgi_ext/raw_post_data_fix.rb
- action_controller/caching.rb
- action_controller/cgi_process.rb
- action_controller/cookies.rb
- action_controller/dependencies.rb
- action_controller/filters.rb
- action_controller/flash.rb
- action_controller/helpers.rb
- action_controller/layout.rb
- action_controller/request.rb
- action_controller/rescue.rb
- action_controller/response.rb
- action_controller/scaffolding.rb
- action_controller/session/active_record_store.rb
- action_controller/session/drb_server.rb
- action_controller/session/drb_store.rb
- action_controller/session/mem_cache_store.rb
- action_controller/session.rb
- action_controller/templates/rescues/_request_and_response.rhtml
- action_controller/templates/rescues/diagnostics.rhtml
- action_controller/templates/rescues/layout.rhtml
- action_controller/templates/rescues/missing_template.rhtml
- action_controller/templates/rescues/template_error.rhtml
- action_controller/templates/rescues/unknown_action.rhtml
- action_controller/templates/scaffolds/edit.rhtml
- action_controller/templates/scaffolds/layout.rhtml
- action_controller/templates/scaffolds/list.rhtml
- action_controller/templates/scaffolds/new.rhtml
- action_controller/templates/scaffolds/show.rhtml
- action_controller/test_process.rb
- action_controller/url_rewriter.rb
- action_view.rb
- action_view/base.rb
- action_view/helpers/active_record_helper.rb
- action_view/helpers/date_helper.rb
- action_view/helpers/debug_helper.rb
- action_view/helpers/form_helper.rb
- action_view/helpers/form_options_helper.rb
- action_view/helpers/text_helper.rb
- action_view/helpers/tag_helper.rb
- action_view/helpers/url_helper.rb
- action_view/partials.rb
- action_view/template_error.rb
- action_view/vendor/builder.rb
- action_view/vendor/builder/blankslate.rb
- action_view/vendor/builder/xmlbase.rb
- action_view/vendor/builder/xmlevents.rb
- action_view/vendor/builder/xmlmarkup.rb
--
-
# the acual gruntwork
Dir.chdir("lib")
-# File::safe_unlink *deprecated.collect{|f| File.join($sitedir, f.split(/\//))}
-files.each {|f|
- File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
-}
+
+Find.find("action_controller", "action_controller.rb", "action_view", "action_view.rb") { |f|
+ if f[-3..-1] == ".rb"
+ File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
+ else
+ File::makedirs(File.join($sitedir, *f.split(/\//)))
+ end
+} \ No newline at end of file