Sha256: 15e31e74ed388b60dc31a290f8945535ca3a8be49579dc05dc8ea678db7e0bf5

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 KB

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
radiant-ck_editor_filter-extension-0.2.9 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.8 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.7 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.6 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.5 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.4 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.3 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.2 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.1 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.2.0 lib/tasks/ck_editor_filter_extension_tasks.rake
radiant-ck_editor_filter-extension-0.1.1 lib/tasks/ck_editor_filter_extension_tasks.rake