class

Kamil::Generator::AssetCopier

Inherits Reference < Object

Synchronizes static assets from static/ to public/, preserving directory hierarchy and file permissions while filtering out temporary/editor files.

Constructors

new(static_dir : Path | String = Path.new("static"), output_dir : Path | String = Path.new("public"))
Source

Instance methods

copy_all

Recursively copies all valid assets to output_dir. Returns the count of copied files.

Source
output_dir
Source
static_dir
Source
sync

Alias for copy_all.

Source