Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixing rake task
  • Loading branch information
saturnflyer committed Sep 15, 2008
1 parent ff4b6a9 commit 0c6e250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/blog_extension_tasks.rake
Expand Up @@ -18,8 +18,8 @@ namespace :radiant do
desc "Copies public assets of the Author to the instance public/ directory."
task :update => :environment do
is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
Dir[AuthorExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
path = file.sub(AuthorExtension.root, '')
Dir[BlogExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
path = file.sub(BlogExtension.root, '')
directory = File.dirname(path)
puts "Copying #{path}..."
mkdir_p RAILS_ROOT + directory
Expand Down

0 comments on commit 0c6e250

Please sign in to comment.