++ed by:
EMAZEP PRAIRIE KEEDI AERO ROMANF

11 PAUSE users
16 non-PAUSE users.

Author image Henry Van Styn
and 14 contributors

NAME

RapidApp::Util::RapidDbic::CfgWriter - Updates RapidDbic model configs using PPI

SYNOPSIS

 use RapidApp::Util::RapidDbic::CfgWriter;
 
 my $CfgW = RapidApp::Util::RapidDbic::CfgWriter->new({ pm_file => "$pm_path" });
 $CfgW->save_to( "$pm_path" );

DESCRIPTION

This module non-destructively updates the TableSpecs configs of RapidDbic-based model classes based on the current state of the associated DBIx:Class schema set in the schema_class config. The purpose is to add the base boilerplate configs for the schema if it has been changed since the application was originally bootstrapped. It is designed to NOT clobber user-supplied configs by only adding the defaults of missing options, leaving the rest alone.

METHODS

new

Create a new RapidApp::Util::RapidDbic::CfgWriter instance. The following build options are supported:

pm_file

Path to the Model pm file. Required.

use_perltidy

When true (default) the file is post-processed by Perl::Tidy.

perltidy_argv

The options supplied to perltidy - defaults to '-i=2 -l=100 -nbbc'

save_to

Writes out the updated file contents to the supplied path.

SEE ALSO

AUTHOR

Henry Van Styn <vanstyn@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by IntelliTree Solutions llc.

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