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