| 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
| |||||||||||||
| 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'} || '-'
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'}
| |||||||||||||
| 17 | } | ||||||||||||
| 18 | else { | ||||||||||||
| 19 | 0 | say "Never been deployed"; | |||||||||||
| 20 | } | ||||||||||||
| 21 | 0 | return 0; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1 | 1; | |||||||||||
| 25 | |||||||||||||
| 26 | __END__ | ||||||||||||