Sha256: 06e830589a32325f816f0a382cefcb77248e79004729db60b62a9e184d7a37a7

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

namespace :workarea do
  namespace :blog do
    desc 'Import Wordpress XML'
    task :import_wordpress, [:path] => :environment do |t, args|
      args.with_defaults(path: 'data/blog/wordpress.xml')
      puts 'Importing wordpress content...'
      Rake::Task['workarea:blog:import_wordpress_attachments'].invoke(args[:path])
      Rake::Task['workarea:blog:import_wordpress_posts'].invoke(args[:path])
      Rake::Task['workarea:blog:import_wordpress_pages'].invoke(args[:path])
      puts 'Wordpress import complete!'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-blog-3.5.2 lib/tasks/import_wordpress.rake
workarea-blog-3.5.1 lib/tasks/import_wordpress.rake
workarea-blog-3.5.0 lib/tasks/import_wordpress.rake
workarea-blog-3.4.9 lib/tasks/import_wordpress.rake
workarea-blog-3.4.8 lib/tasks/import_wordpress.rake
workarea-blog-3.4.7 lib/tasks/import_wordpress.rake