Sha256: a147e051d123f06f61248ad09040a5d9c5dd12aa442f8fbafa0229bb93ecd648

Contents?: true

Size: 994 Bytes

Versions: 31

Compression:

Stored size: 994 Bytes

Contents

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

31 entries across 31 versions & 4 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radiant-markdown_filter-extension-1.0.2/lib/tasks/markdown_filter_extension_tasks.rake
radiant-markdown_filter-extension-1.0.2 lib/tasks/markdown_filter_extension_tasks.rake
radiant-markdown_filter-extension-1.0.1 lib/tasks/markdown_filter_extension_tasks.rake
radiant-markdown_filter-extension-1.0.0 lib/tasks/markdown_filter_extension_tasks.rake
radiant-1.0.0.rc2 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiant-1.0.0.rc1 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.2.4 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.2.2 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.2.1 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.2 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.9 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.8 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.7 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.6 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.5 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.4 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiant-0.7.2 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiant-0.9.1 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiant-0.8.2 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake
radiant-0.9.0.rc2 vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake