Sha256: ce97e840a130410174efe03114f507e5086b8ce96dff31c35f2dd7487ea6d672
Contents?: true
Size: 1007 Bytes
Versions: 11
Compression:
Stored size: 1007 Bytes
Contents
namespace :radiant do namespace :extensions do namespace :event_map do desc "Runs the migration of the Event Map extension" task :migrate => :environment do require 'radiant/extension_migrator' if ENV["VERSION"] EventMapExtension.migrator.migrate(ENV["VERSION"].to_i) else EventMapExtension.migrator.migrate end end desc "Copies public assets of the Event Map to the instance public/ directory." task :update => :environment do is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) } puts "Copying assets from EventMapExtension" Dir[EventMapExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| path = file.sub(EventMapExtension.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