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