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