Changeset 4351b0c in lab.git for Dev/github
- Timestamp:
- Aug 21, 2013 6:59:25 PM (11 years ago)
- Branches:
- master
- Children:
- 29f6915b
- Parents:
- 13e2400
- Location:
- Dev/github
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/github/GitHubBackup.pm
r13e2400 r4351b0c 36 36 my %parameters = @_; 37 37 38 if ($self->access_token) { 39 $parameters{access_token} = $self->access_token; 40 } 38 41 my $parameters = ''; 39 42 while (my($key, $value) = each %parameters) { … … 146 149 147 150 my $account = $self->account or croak "account is not set"; 151 my $token = ($self->access_token) ? "?access_token=" . $self->access_token : ''; 148 152 my $result; 149 153 if (my $repository = $self->repository) { 150 $result = [ $self->api->json_api("/repos/$account/$repository ") ];154 $result = [ $self->api->json_api("/repos/$account/$repository$token") ]; 151 155 } 152 156 else { -
Dev/github/github-backup.pl
rf7f894d r4351b0c 11 11 repository => 'munin-plugins', 12 12 directory => 'repos', 13 access_token => 'e72e16c7e42f292c6912e7710c838347ae178b4a', 13 14 ); 14 15
Note: See TracChangeset
for help on using the changeset viewer.