WWW::Github::Files - Read files and directories from Github
my $gitfiles = WWW::Github::Files->new( author => 'semuel', resp => 'site-lang-collab', branch => 'master', ); my @files = $gitfiles->open('/')->readdir();
Using Github API to browse a git resp easily and download files
This modules is a thin warper around the API, just to make life easier
Mutual exlusive with 'commit'.
On first access the object will "lock" on the latest commit in this branch, and from this point will serve files only from this commit
The object will retrive files and directories as they were after this commit
Optional Net::Oauth2 Access Token, for using in API calls. If not specified, will make anonymous calls using LWP
receive path (which have to start with '/') and return file or dir object for that location
shortcut to $gitfiles->open(path)->read()
shortcut to $gitfiles->open(path)->readdir()
The name of the file
full path (+name) of the file
returns the content of the file
The name of the directory
full path (+name) of the directory
returns a list of file/dir objects that this directory contains
Fomberg Shmuel, <owner@semuel.co.il>
Copyright 2013 by Shmuel Fomberg.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Github::Files, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Github::Files
CPAN shell
perl -MCPAN -e shell install WWW::Github::Files
For more information on module installation, please visit the detailed CPAN module installation guide.