The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Github::Files::Mock - Read files and directories from local directory, as if they came from Gibhub

SYNOPSIS

    my $gitfiles = WWW::Github::Files::Mock->new($respodir);
    my @files = $gitfiles->open('/')->readdir();

DESCRIPTION

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.

AUTHOR

Fomberg Shmuel, <shmuelfomberg@gmail.com>

COPYRIGHT AND LICENSE

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.