App-EPAN
view release on metacpan or search on metacpan
lib/App/EPAN.pm view on Meta::CPAN
sub _list_obsoletes {
my ($self) = @_;
my $basedir = $self->target_dir;
my $data_for = $self->_collect_index_for($basedir);
return sort {$a cmp $b} keys %{$data_for->{obsolete}};
}
sub action_list_obsoletes {
my ($self) = @_;
say for $self->_list_obsoletes;
return;
}
sub action_purge_obsoletes {
my ($self) = @_;
for my $file ($self->_list_obsoletes) {
INFO "removing $file";
unlink $file;
}
return;
}
sub action_list_actions {
my $self = shift;
no strict 'refs';
say 'Available actions:';
say for
sort {$a cmp $b}
map {s/^action_/- /; s/_/-/g; $_ }
grep {/^action_/ && $self->can($_)}
keys %{ref($self)."::"};
return;
}
sub last_distlist {
my ($self) = @_;
return keys %{$self->last_index()->{bare_distro}};
( run in 1.212 second using v1.01-cache-2.11-cpan-a1f116cd669 )