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