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