| 1 | package Sah::Schema::perl::modname::installed; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 7 | 1 | our $DATE = '2024-02-16'; # DATE | |
| 8 | 1 | our $DIST = 'Sah-SchemaBundle-Perl'; # DIST | |
| 9 | 1 | our $VERSION = '0.050'; # VERSION | |
| 10 | |||
| 11 | 1 | our $schema = ['perl::modname' => { | |
| 12 | summary => 'Name of a Perl module that is installed locally', | ||
| 13 | description => <<'_', | ||
| 14 | |||
| 15 | This schema is based on the `perl::modname` schema with an additional check that | ||
| 16 | the perl module is installed locally. Checking is done using | ||
| 17 | <pm:Module::Installed::Tiny>. This check fetches the source code of the module | ||
| 18 | from filesystem or %INC hooks, but does not actually load/execute the code. | ||
| 19 | |||
| 20 | _ | ||
| 21 | |||
| 22 | 'prefilters' => [ | ||
| 23 | 'Perl::check_module_installed', | ||
| 24 | ], | ||
| 25 | |||
| 26 | examples => [ | ||
| 27 | ], | ||
| 28 | |||
| 29 | }]; | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | # ABSTRACT: Name of a Perl module that is installed locally | ||
| 33 | |||
| 34 | __END__ | ||