Module::Build::Service::Base - Base class for service implementations
version 0.91
package Module::Build::Service::foo; use Moo; extends 'Module::Build::Service::Base'; sub _build_log { ',,foo.log' }
This is the base class for all services defined for Module::Build::Service::*.
Module::Build::Service::*
Each service based on this class will, at runtime, look for various hooks to be defined in the user's subclass of Module::Build::Service, and run them at the appropriate time.
Module::Build::Service
The hooks are:
Where to log output from the service executable. Defaults to _build/mbs/log/<service_name>.log.
_build/mbs/log/<service_name>.log
A sensible identifier for the service. Defaults to the name of the package after removing Module::Build::Service::
For each attribute, you can either pass in a value when instantiating the object, or you can define a _build_<attribute> subroutine that will provide (or calculate) the appropriate value.
_build_<attribute>
Run the given command line (with a fully qualified binary), and return the result, as well as any output.
Michael Alan Dorman <mdorman@ironicdesign.com>
This software is copyright (c) 2012 by Ironic Design, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Module::Build::Service, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::Service
CPAN shell
perl -MCPAN -e shell install Module::Build::Service
For more information on module installation, please visit the detailed CPAN module installation guide.