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