my $dm = Dist::Metadata->new(dir => $path_to_dir);
DESCRIPTIONThis is a subclass of Dist::Metadata::Dist to enable getting the dists metadata from a directory.
This can be useful if you already have a dist extracted into a directory.
It's probably not very useful on it's own though, and should be used from ``new'' in Dist::Metadata.
$dist = Dist::Metadata::Struct->new(dir => $path);
Accepts a single 'dir' argument that should be a path to a directory.
determine_name_and_versionAttempts to parse name and version from directory name.
dirReturns the "dir" attribute specified in the constructor.
file_contentReturns the content for the specified file.
find_filesReturns a list of the file names beneath the directory (relative to the directory).
physical_directoryReturns the "dir" attribute since this is already a directory containing the desired files.
AUTHORRandy Stauner <[email protected]>
COPYRIGHT AND LICENSEThis software is copyright (c) 2011 by Randy Stauner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.