Permalink
Browse files

rake update task now copies asset_packages.yml

  • Loading branch information...
1 parent c728d57 commit 63e8714601dbf6c79155e3b8414ffe05969a8ebf @nelstrom committed Jun 1, 2009
Showing with 18 additions and 5 deletions.
  1. +10 −0 config/asset_packages.yml
  2. +8 −5 lib/tasks/asset_packager_extension_tasks.rake
View
@@ -0,0 +1,10 @@
+---
+javascripts:
+- base:
+ - prototype
+ - effects
+ - dragdrop
+ - controls
+ - application
+stylesheets:
+- base: []
@@ -16,11 +16,14 @@ namespace :radiant do
task :update => :environment do
is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
puts "Copying assets from AssetPackagerExtension"
- Dir[AssetPackagerExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
- path = file.sub(AssetPackagerExtension.root, '')
- directory = File.dirname(path)
- mkdir_p RAILS_ROOT + directory
- cp file, RAILS_ROOT + path
+ copy_dirs = ["/public/**/*", "/config/**/*"]
+ copy_dirs.each do |dir|
+ Dir[AssetPackagerExtension.root + dir].reject(&is_svn_or_dir).each do |file|
+ path = file.sub(AssetPackagerExtension.root, '')
+ directory = File.dirname(path)
+ mkdir_p RAILS_ROOT + directory
+ cp file, RAILS_ROOT + path
+ end
end
end
end

0 comments on commit 63e8714

Please sign in to comment.