<<

# Bugzilla::CPAN

- NAME
- SYNOPSIS
- DESCRIPTION
- CLASS METHODS
  - feature
  - has_feature
  - cpan_meta
  - preload_features()

# NAME

Bugzilla::CPAN - Methods relating to Bugzilla's CPAN metadata (including features)

# SYNOPSIS

      use Bugzilla;
      Bugzilla->cpan_meta;
      Bugzilla->feature('psgi');
      Bugzilla->has_feature('psgi');

# DESCRIPTION

You most likely never need to use this module directly, as the Bugzilla factory class inherits all of these class methods. It exists so that cpan metadata can be read in before the rest of Bugzilla.pm is loaded in checksetup.pl

# CLASS METHODS

## `feature`

Wrapper around `has_feature()` that also loads all of required modules into the runtime.

## `has_feature`

Consults MYMETA.yml for optional Bugzilla features and returns true if all the requirements are installed.

## `cpan_meta`

Returns a CPAN::Meta from the contents of MYMETA.json in the Bugzilla directory.

## `preload_features()`

Attempts to load all features.

<<