Sha256: 7f5630fd043bfac05b18089d13c7876bbad5008158e13e81e67eeb58063f5404

Contents?: true

Size: 942 Bytes

Versions: 26

Compression:

Stored size: 942 Bytes

Contents

namespace :radiant do
  namespace :extensions do
    namespace :archive do
      
      desc "Runs the migration of the Archive extension"
      task :migrate => :environment do
        require 'radiant/extension_migrator'
        if ENV["VERSION"]
          ArchiveExtension.migrator.migrate(ENV["VERSION"].to_i)
        else
          ArchiveExtension.migrator.migrate
        end
      end
      
      desc "Copies public assets of the Archive to the instance public/ directory."
      task :update => :environment do
        is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
        Dir[ArchiveExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
          path = file.sub(ArchiveExtension.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

26 entries across 26 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.2.2 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.2.1 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.2 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.1.9 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.1.8 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.1.7 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.1.6 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.1.5 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiantcms-couchrest_model-0.1.4 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.7.2 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.9.1 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.8.2 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.9.0.rc2 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-rc-0.9.0 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.8.1 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.6.4 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.6.5.1 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.6.5 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake
radiant-0.6.7 vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake