Sha256: a147e051d123f06f61248ad09040a5d9c5dd12aa442f8fbafa0229bb93ecd648
Contents?: true
Size: 994 Bytes
Versions: 31
Compression:
Stored size: 994 Bytes
Contents
namespace :radiant do namespace :extensions do namespace :markdown_filter do desc "Runs the migration of the Markdown Filter extension" task :migrate => :environment do require 'radiant/extension_migrator' if ENV["VERSION"] MarkdownFilterExtension.migrator.migrate(ENV["VERSION"].to_i) else MarkdownFilterExtension.migrator.migrate end end desc "Copies public assets of the Markdown Filter to the instance public/ directory." task :update => :environment do is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) } Dir[MarkdownFilterExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| path = file.sub(MarkdownFilterExtension.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
31 entries across 31 versions & 4 rubygems