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