« blib/lib/Clustericious/Plugin/ClustericiousHelpers.pm
↑ Summary
blib/lib/Clustericious/Coder/YAML.pm »
| 1 | package Clustericious::Command::configtest; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | ▶ | use Mojo::Base 'Clustericious::Command'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | # ABSTRACT: Test a Clustericious application's configuration | ||||||||||
| 9 | 3 | our $VERSION = '1.29'; # VERSION | |||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | 3 | has description => <<EOT; | |||||||||
| 13 | Load configuration and test for errors | ||||||||||
| 14 | EOT | ||||||||||
| 15 | |||||||||||
| 16 | 3 | has usage => <<EOT; | |||||||||
| 17 | usage $0: configtest | ||||||||||
| 18 | Load configuration and test for errors | ||||||||||
| 19 | EOT | ||||||||||
| 20 | |||||||||||
| 21 | sub run | ||||||||||
| 22 | 2 | ▶ | { | ||||||||
|
Subroutine
run: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 23 | 2 | my($self, @args) = @_; | |||||||||
| 24 | 2 | ▶ | exit 2 unless $self->app->sanity_check; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 1 | say 'config okay'; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 3 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||