line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################### |
2
|
|
|
|
|
|
|
package GitMeta::Github; |
3
|
|
|
|
|
|
|
########################################### |
4
|
|
|
|
|
|
|
# 2010, Mike Schilli |
5
|
|
|
|
|
|
|
########################################### |
6
|
2
|
|
|
2
|
|
22940
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
69
|
|
7
|
2
|
|
|
2
|
|
20
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
8
|
2
|
|
|
2
|
|
11
|
use base qw(GitMeta); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
553
|
|
9
|
2
|
|
|
2
|
|
2184
|
use Pithub; |
|
2
|
|
|
|
|
493695
|
|
|
2
|
|
|
|
|
352
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
########################################### |
12
|
|
|
|
|
|
|
sub expand { |
13
|
|
|
|
|
|
|
########################################### |
14
|
0
|
|
|
0
|
0
|
|
my($self) = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
$self->param_check("user"); |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
my $user = $self->{user}; |
19
|
0
|
|
|
|
|
|
my @repos = (); |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
my $ph = Pithub->new( auto_pagination => 1 ); |
22
|
0
|
|
|
|
|
|
my $result = $ph->repos->list( user => $user ); |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
while ( my $repo = $result->next ) { |
25
|
0
|
|
|
|
|
|
push @repos, |
26
|
|
|
|
|
|
|
"git\@github.com:$user/$repo->{name}.git"; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return @repos; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |