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