Sha256: d54cffd711eaa5f92c833f4ae02b0dc64de16e215ef7b0efdea4c9d3dd364304

Contents?: true

Size: 1016 Bytes

Versions: 8

Compression:

Stored size: 1016 Bytes

Contents

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

8 entries across 8 versions & 3 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radiant-smarty_pants_filter-extension-1.0.2/lib/tasks/smarty_pants_filter_extension_tasks.rake
radiant-smarty_pants_filter-extension-1.0.2 lib/tasks/smarty_pants_filter_extension_tasks.rake
radiant-smarty_pants_filter-extension-1.0.1 lib/tasks/smarty_pants_filter_extension_tasks.rake
radiant-smarty_pants_filter-extension-1.0.0 lib/tasks/smarty_pants_filter_extension_tasks.rake
radiant-1.0.0.rc2 vendor/extensions/smarty_pants_filter/lib/tasks/smarty_pants_filter_extension_tasks.rake
radiant-1.0.0.rc1 vendor/extensions/smarty_pants_filter/lib/tasks/smarty_pants_filter_extension_tasks.rake
radiantcms-couchrest_model-0.1.4 vendor/extensions/smarty_pants_filter/lib/tasks/smarty_pants_filter_extension_tasks.rake
radiant-0.9.1 vendor/extensions/smarty_pants_filter/lib/tasks/smarty_pants_filter_extension_tasks.rake