WWW::Github::Files::Mock - Read files and directories from local directory, as if they came from Gibhub
my $gitfiles = WWW::Github::Files::Mock->new($respodir); my @files = $gitfiles->open('/')->readdir();
Suppose that you wrote some code that is based on WWW::Github::Files accessing some github repository and reading files.
Now suppose you want to use the same code on a local repository. Say for testing, or whatever. Fear not, this module will abstract the disk access as if the files where hosted on Github.
What is doesn't do - Can't select branch or commit to read from. This module assumes that the current state is the desired commit. (If you think that the ability to select commit/branh is important, please file a feature request)
This module mocks WWW::Github::Files, so go look there for interface documentation.
Fomberg Shmuel, <firstname.lastname@example.org>
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.