- Timestamp:
- Aug 18, 2013 4:02:01 AM (11 years ago)
- Branches:
- master
- Children:
- 19df400
- Parents:
- 19233f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/github/GitHubBackup.pm
r19233f5 rb8d7413 58 58 $self->{repos} = [ 59 59 GitHubBackup::Repository->new({ 60 __super => $self,60 directory => sub {$self->directory}, 61 61 full_name => "$account/$repository", 62 62 }) … … 82 82 push @{$self->{repos}}, 83 83 GitHubBackup::Repository->new({ 84 __super => $self,84 directory => sub {$self->directory}, 85 85 full_name => $repos->{full_name}, 86 86 clone_url => $repos->{clone_url}, … … 103 103 use File::chdir; 104 104 105 105 106 sub new { 106 107 my $class = shift; … … 115 116 } 116 117 118 sub directory { 119 my $self = shift; 120 121 return $self->{directory}->(); 122 } 123 117 124 sub clone_git { 118 125 my $self = shift; 119 126 120 my $dir = $self-> {__super}->directory .'/'. $self->{full_name};127 my $dir = $self->directory .'/'. $self->{full_name}; 121 128 if (-d "$dir") { 122 129 local $CWD = $dir;
Note: See TracChangeset
for help on using the changeset viewer.