logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Dist::Metadata::Dir - Enable Dist::Metadata for a directory

Author

       Randy Stauner <rwstauner@cpan.org>

Description

       This 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.

Methods

new
         $dist = Dist::Metadata::Struct->new(dir => $path);

       Accepts a single 'dir' argument that should be a path to a directory.

   determine_name_and_version
       Attempts to parse name and version from directory name.

   dir
       Returns the "dir" attribute specified in the constructor.

   file_content
       Returns the content for the specified file.

   find_files
       Returns a list of the file names beneath the directory (relative to the directory).

   physical_directory
       Returns the "dir" attribute since this is already a directory containing the desired files.

Name

       Dist::Metadata::Dir - Enable Dist::Metadata for a directory

Synopsis

         my $dm = Dist::Metadata->new(dir => $path_to_dir);

Version

       version 0.927

See Also