App-Kit
view release on metacpan or search on metacpan
lib/App/Kit/cPanel.pm view on Meta::CPAN
package App::Kit::cPanel;
## no critic (RequireUseStrict) - Moo does strict and warnings
use Moo;
extends 'App::Kit';
has '+log' => (
is => ( $INC{'App/Kit/Util/RW.pm'} || $ENV{'App-Kit-Util-RW'} ? 'rw' : 'rwp' ),
lazy => 1,
default => sub {
require Cpanel::Logger;
return Cpanel::Logger->new();
},
);
has '+locale' => (
is => ( $INC{'App/Kit/Util/RW.pm'} || $ENV{'App-Kit-Util-RW'} ? 'rw' : 'rwp' ),
lazy => 1,
default => sub {
require Cpanel::Locale;
return Cpanel::Locale->get_handle();
},
);
1;
__END__
=encoding utf-8
=head1 App::Kit for cPanel servers.
Uses cPanelâs logger and locale systems for log() and locale() respectively.
See L<App::Kit> for details.
( run in 0.703 second using v1.01-cache-2.11-cpan-ceb78f64989 )