class Distribution::Path does Distribution::Locally { }

A Distribution implementation backed by the filesystem. It requires a META6.json file at its root.


method new§

method new(IO::Path $prefixIO::Path :$meta-file = IO::Path)

Creates a new Distribution::Path instance from the META6.json file found at the given $prefix, and from which all paths in the metadata will be prefixed with. :$meta-file may optionally be passed if a filename other than META6.json needs to be used.

method meta§

method meta(Distribution::Path:D:)

Returns a Hash with the representation of the metadata.

method content§


Returns an IO::Handle to the file represented by $name-path. $name-path is a relative path as it would be found in the metadata such as lib/Foo.rakumod or resources/foo.txt.