Permalink
Browse files

Decorate with some log messages.

  • Loading branch information...
1 parent a1f81b7 commit c50ac8d3f0ff067eebaae1e701c0813dd47fd50b Jeffrey Ryan Thalhammer committed Dec 7, 2011
Showing with 5 additions and 2 deletions.
  1. +1 −0 lib/Pinto/Action/Clean.pm
  2. +2 −0 lib/Pinto/Action/Import.pm
  3. +2 −2 lib/Pinto/Util.pm
@@ -42,6 +42,7 @@ override execute => sub {
next if not $self->_prompt_for_confirmation($dist);
}
+ $self->info("Removing distribution $dist");
$self->repos->remove_distribution($dist);
$self->add_message( "Removed outdated distribution $dist" );
$removed++;
@@ -218,6 +218,8 @@ sub _import_distribution {
my $dist = $self->repos->add_distribution($struct);
+ $self->add_message( Pinto::Util::imported_dist_message($dist) );
+
return $dist;
}
#------------------------------------------------------------------------------
View
@@ -114,10 +114,10 @@ sub removed_dist_message {
#-------------------------------------------------------------------------------
-sub reindexed_dist_message {
+sub imported_dist_message {
my ($distribution) = @_;
- return _dist_message($distribution, 'Reindexed');
+ return _dist_message($distribution, 'Imported');
}
#-------------------------------------------------------------------------------

0 comments on commit c50ac8d

Please sign in to comment.