lib/wp2middleman.rb in wp2middleman-0.0.1 vs lib/wp2middleman.rb in wp2middleman-0.0.2
- old
+ new
@@ -1,12 +1,16 @@
require 'wp2middleman/version'
require 'wp2middleman/post'
+require 'wp2middleman/middleman_post'
require 'wp2middleman/post_collection'
+require 'wp2middleman/frontmatter'
require 'wp2middleman/migrator'
require 'wp2middleman/cli'
module WP2Middleman
- def self.migrate(wp_xml_export_file, body_to_markdown = false)
- migrator = WP2Middleman::Migrator.new wp_xml_export_file, body_to_markdown: body_to_markdown
+ def self.migrate(wp_xml_export_file, body_to_markdown = false, include_fields = [])
+ migrator = WP2Middleman::Migrator.new wp_xml_export_file,
+ body_to_markdown: body_to_markdown,
+ include_fields: include_fields
migrator.migrate
end
end