| 1 | # ABSTRACT: Report statistics about the repository | ||
| 2 | |||
| 3 | package Pinto::Action::Statistics; | ||
| 4 | |||
| 5 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use MooseX::MarkAsMethods ( autoclean => 1 ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Pinto::Types qw(StackName StackDefault StackObject); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use Pinto::Statistics; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | #------------------------------------------------------------------------------ | ||
| 13 | |||
| 14 | 1 | our $VERSION = '0.14'; # VERSION | |
| 15 | |||
| 16 | #------------------------------------------------------------------------------ | ||
| 17 | |||
| 18 | 1 | extends qw( Pinto::Action ); | |
| 19 | |||
| 20 | #------------------------------------------------------------------------------ | ||
| 21 | |||
| 22 | 1 | has stack => ( | |
| 23 | is => 'ro', | ||
| 24 | isa => StackName | StackDefault | StackObject, | ||
| 25 | default => undef, | ||
| 26 | ); | ||
| 27 | |||
| 28 | #------------------------------------------------------------------------------ | ||
| 29 | |||
| 30 | 0 | ▶ | sub execute { |
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 31 | 0 | my ($self) = @_; | |
| 32 | |||
| 33 | 0 | my $stack = $self->repo->get_stack( $self->stack ); | |
| 34 | |||
| 35 | 0 | my $stats = Pinto::Statistics->new( stack => $stack ); | |
| 36 | |||
| 37 | 0 | $self->show( $stats->to_string ); | |
| 38 | |||
| 39 | 0 | return $self->result; | |
| 40 | } | ||
| 41 | |||
| 42 | #------------------------------------------------------------------------------ | ||
| 43 | |||
| 44 | 1 | __PACKAGE__->meta->make_immutable(); | |
| 45 | |||
| 46 | #------------------------------------------------------------------------------ | ||
| 47 | |||
| 48 | 1 | 1; | |
| 49 | |||
| 50 | __END__ | ||