Sha256: 7f5630fd043bfac05b18089d13c7876bbad5008158e13e81e67eeb58063f5404
Contents?: true
Size: 942 Bytes
Versions: 26
Compression:
Stored size: 942 Bytes
Contents
namespace :radiant do namespace :extensions do namespace :archive do desc "Runs the migration of the Archive extension" task :migrate => :environment do require 'radiant/extension_migrator' if ENV["VERSION"] ArchiveExtension.migrator.migrate(ENV["VERSION"].to_i) else ArchiveExtension.migrator.migrate end end desc "Copies public assets of the Archive to the instance public/ directory." task :update => :environment do is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) } Dir[ArchiveExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| path = file.sub(ArchiveExtension.root, '') directory = File.dirname(path) puts "Copying #{path}..." mkdir_p RAILS_ROOT + directory cp file, RAILS_ROOT + path end end end end end
Version data entries
26 entries across 26 versions & 3 rubygems