Graham Ollis > Clustericious > Clustericious::Command::configtest

Download:
Clustericious-0.9940.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.9940   Source   Latest Release: Clustericious-0.9940_03

NAME ^

Clustericious::Command::configtest - Test a Clustericious application's configuration

VERSION ^

version 0.9940

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

SUPER CLASS ^

Clustericious::Command

SEE ALSO ^

Clustericious

AUTHOR ^

original author: Brian Duggan

current maintainer: Graham Ollis <plicease@cpan.org>

contributors:

Curt Tilmes

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by NASA GSFC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: