Sha256: 3dd5890a2e1f319f253e73af68d3aab70da3824c9294599ca2927fc320878c3c
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
require 'nokogiri' require 'open-uri' require 'fileutils' require 'json' require_relative 'blog' require_relative 'post' require_relative 'category' require_relative 'tag' require_relative 'post_category_domain' require_relative 'post_attachment' module Contentful module Exporter module Wordpress class Export attr_reader :wordpress_xml, :settings def initialize(settings) @settings = settings @wordpress_xml = Nokogiri::XML(File.open(settings.wordpress_xml)) end def export_blog Blog.new(wordpress_xml, settings).blog_extractor end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wordpress-exporter-0.0.2 | lib/wordpress/export.rb |
wordpress-exporter-0.0.1 | lib/wordpress/export.rb |