module

Hwaro::Services::BundleAssets

Class methods

copy(source_dir : String, dest_dir : String, output_dir : String, dry_run : Bool, verb : String, & : String, String -> Bool) : Int32

Walk a page bundle's co-located assets — every non-Markdown, non- symlink regular file beside its index.md — yielding {src, dest} for each destination that stays inside output_dir. The block performs the copy and returns whether it did; the count of trues is returned. A failure on one asset is warned as "Could not verb bundle asset" and the walk moves on.

Source