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