blib/lib/Statocles/Command/status.pm

filter: Statementstmt 41.6% 5 / 12 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 50.0% 1 / 2 Podpod 0.0% 0 / 1 totaltotal 30.0% 6 / 20 CC 3 SCAR 22.2
CC
3
Cov
31%
run
12.0
BEGIN
1.0
CRAP 9.2
« blib/lib/Statocles/Page/Document.pm ↑ Summary blib/lib/Statocles/Store.pm »
1 package Statocles::Command::status;
2 1 our $VERSION = '0.099';
3 # ABSTRACT: Show status information for the site
4  
5 1 ▶use Statocles::Base 'Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub run {
Subroutine run: not called CC=3 SCAR=24.8
Pod undocumented
8 0 my ( $self, @argv ) = @_;
9 0 my $status = $self->_get_status;
10 0 ▶ if ($status->{last_deploy_date}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($status->{'last_deploy_date'}) { } 0 0 0
11 say "Last deployed on " .
12 DateTime::Moonpig->from_epoch(
13 epoch => $status->{last_deploy_date},
14 0 )->strftime("%Y-%m-%d at %H:%M");
15 say "Deployed up to date " .
16 0 ▶ ( $status->{last_deploy_args}{date} || '-' );
Condition0%0/2
$status->{'last_deploy_args'}{'date'} || '-'
l!l
00
MC/DC0%0/1
$status->{'last_deploy_args'}{'date'} || '-'
$status->{'last_deploy_args'}{'date'}
Truth table0%0/2
A
A= $status->{'last_deploy_args'}{'date'}
Aresult
11
00
17 }
18 else {
19 0 say "Never been deployed";
20 }
21 0 return 0;
22 }
23  
24 1 1;
25  
26 __END__
« blib/lib/Statocles/Page/Document.pm ↑ Summary blib/lib/Statocles/Store.pm »