Name
CatalystX::Usul::Traitfor::PostInstallConfig - Reads and writes the post installation configuration file
Version
0.1.$Revision: 1320 $
Synopsis
use CatalystX::Usul::Moose;
with q(CatalystX::Usul::Traitfor::PostInstallConfig);
Description
Reads and writes the post installation configuration file
Configuration and Environment
Requires the config attribute. Defines the following list of attributes;
- pic_file_name
-
Name of the post installation configuration file. Defaults to build.json
- pic_file_path
-
Path to the post installation configuration file. Defaults to var/etc/build.json
Subroutines/Methods
get_owner
($uid, $gid) = $self->get_owner( $picfg_hash_ref );
Returns the application owner and group ids
maybe_read_post_install_config
$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
read_post_install_config
$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
write_post_install_config
$self->write_post_install_config( $data );
Writes the hash ref of post install configuration information to a file in the control directory
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Acknowledgements
Larry Wall - For the Perl programming language
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2013 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