Browse files

rake update task copies asset_packager plugin.

Found that with the rails asset_packager plugin in extension
/vendor/plugins directory, it was difficult to load rake tasks, and they
didn't actually work.

Instead, updated rake update task, so that the asset_packager plugin is
copied into RADIANT_ROOT/vendor/plugins. Now, rake tasks for the plugin
are loaded, and they work.
  • Loading branch information...
1 parent cea0c0c commit 875b4ee18f8ef475ad77a0620b60ca085126acbf @nelstrom committed Jun 1, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/asset_packager_extension_tasks.rake
@@ -16,7 +16,7 @@ namespace :radiant do
task :update => :environment do
is_svn_or_dir = proc {|path| path =~ /\.svn/ || }
puts "Copying assets from AssetPackagerExtension"
- copy_dirs = ["/public/**/*", "/config/**/*"]
+ copy_dirs = ["/public/**/*", "/config/**/*", "/vendor/plugins/**/*"]
copy_dirs.each do |dir|
Dir[AssetPackagerExtension.root + dir].reject(&is_svn_or_dir).each do |file|
path = file.sub(AssetPackagerExtension.root, '')

0 comments on commit 875b4ee

Please sign in to comment.