class

Hwaro::Services::Importers::Base

Inherits Reference < Object

Constants

CARRIED_KEYS = Set {"toc", "template", "page_template", "image", "updated", "expires", "render", "in_sitemap", "in_search_index", "insert_anchor_links", "transparent", "generate_feeds", "paginate", "paginate_by", "pagination_enabled", "paginate_path", "sort_by", "reverse", "redirect_to", "series_weight"}

hwaro front-matter keys the source generators give no meaning of their own, carried through as-is: a value there came from tool export or a theme param with the same intent (toc). hwaro keys Hugo uses differently (menu, cascade, path, …) are page params there, so they join every other unrecognised key in [extra].

YAML_FM_REGEX = /\A---[ \t]*\n(.*?\n?)^---[ \t]*$\n?(.*)\z/m

Regex matching YAML frontmatter: opening --- on the first line and a closing --- on its own line (multiline mode so ^ matches line starts).

Instance methods

dry_run

When set, the run resolves and reports every destination (counts, manifest, collision renames) but writes nothing to disk.

Source
dry_run=(dry_run : Bool)

When set, the run resolves and reports every destination (counts, manifest, collision renames) but writes nothing to disk.

Source
file_actions

Per-file manifest of this run, in write order.

Source
outside_source_skips

Source files walk_files dropped because they are symlinks resolving outside the import source; folded into skipped_count.

Source
run(options : Config::Options::ImportOptions) : ImportResult
Source