CatalystX::Usul::Traitfor::PostInstallConfig - Reads and writes the post installation configuration file
Describes v0.17.$Rev: 1 $
use CatalystX::Usul::Moose; with q(CatalystX::Usul::Traitfor::PostInstallConfig);
Reads and writes the post installation configuration file
Requires the config attribute. Defines the following list of attributes;
Name of the post installation configuration file. Defaults to build.json
Path to the post installation configuration file. Defaults to var/etc/build.json
($uid, $gid) = $self->get_owner( $picfg_hash_ref );
Returns the application owner and group ids
$hash_ref = $self->maybe_read_post_install_config;
Like "read_post_install_config" but returns an empty hash ref if the file does not exist
$picfg_hash_ref = $self->read_post_install_config;
Returns a hash ref of the post installation config which was written to the control directory during the installation process
$self->write_post_install_config( $data );
Writes the hash ref of post install configuration information to a file in the control directory
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.