Group::Git::Github - Adds reading all repositories you have access to on github.com
This documentation refers to Group::Git::Github version 0.3.1.
use Group::Git::Github; # pull (or clone missing) all repositories that joeblogs has created/forked my $ggg = Group::Git::Github->new( conf => { username => 'joeblogs@gmail.com', password => 'myverysecurepassword', }, ); # Alternitavely using personal access tokens # You can setup at https://github.com/settings/applications my $ggg = Group::Git::Github->new( conf => { access_token => '...', }, ); # list all repositories my $repositories = $ggg->repo(); # do something to each repository for my $repo (keys %{$repositories}) { # eg do a pull $ggg->pull($repo); }
Reads all repositories for the configured user (if none set user will be prompted to enter one as well as a password)
There are three configuration parameters that are currently used
A github OAuth personal access token. If supplied then username and password are ignored.
Specify the user to login as, if not specified the user will be prompted to enter a username.
Specify the password to login with, if not specified the user will be prompted to enter a password.
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2013 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Group::Git, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Group::Git
CPAN shell
perl -MCPAN -e shell install Group::Git
For more information on module installation, please visit the detailed CPAN module installation guide.