Name

CatalystX::Usul::Build - M::B utility methods

Version

0.1.$Revision: 402 $

Synopsis

use CatalystX::Usul::Build;
use Class::C3;

my $builder = q(CatalystX::Usul::Build);
my $class   = $builder->subclass( class => 'Bob', code  => <<'EOB' );

sub ACTION_install {
   my $self = shift;

   $self->next::method();

   # Your application specific post installation code goes here

   return;
}
EOB

Description

Subclasses Module::Build. Ask questions during the build phase and stores the answers for use during the install phase. The answers to the questions determine where the application will be installed and which additional actions will take place. Should be generic enough for any application

Subroutines/Methods

ACTION_build

When called by it's subclass this method prompts the user for information about how this installation is to be performed. User responses are saved to the build.xml file

ACTION_install

When called from it's subclass this method performs the sequence of actions required to install the application. Configuration options are read from the file build.xml

ACTION_installdeps

Iterates over the requires attributes calling CPAN each time to install the dependent module

fcopy

Copies files from source to destination, creating the destination directories as required

filter

Select only required files for processing. Uses the skip_pattern defined in the subclass which must be called Bob

get_config

Reads the configuration information from the named XML file

get_connect_info

Reads database connection information from the named XML file

process_files

Handles the processing of files other than library modules and programs. It calls "filter" to select only those files that should be processed and "fcopy" to do the actual copying

replace

Substitute one string for another in a given file

Diagnostics

None

Configuration and Environment

Edits and stores information in the file build.xml

Dependencies

CatalystX::Usul::Programs
CatalystX::Usul::Schema
Module::Build
XML::Simple

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

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2008 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