NAME
Clustericious::Command::configtest - Test a Clustericious application's configuration
SYNOPSIS
Your app:
package YourApp;
use Mojo::Base qw( Clustericious::App );
sub sanity_check
{
my($self) = @_;
# ... return true if sane, return false otherwise
unless($self->config->foo(default => '') eq 'bar')
{
say 'your config should set foo to bar';
return 0;
}
return 1;
}
1;
do a sanity check of the configuration:
% yourapp configtest
DESCRIPTION
This command does a basic sanity check on the configuration for your Clustericious application, and calls the application's sanity_check