Module::Packaged::Generator::Distribution::Mageia - mageia driver to fetch available modules


Module-Packaged-Generator documentation Contained in the Module-Packaged-Generator distribution.

Index


Code Index:

NAME

Top

Module::Packaged::Generator::Distribution::Mageia - mageia driver to fetch available modules

VERSION

Top

version 1.111040

DESCRIPTION

Top

This module is the Module::Packaged::Generator::Distribution driver for Mageia.

AUTHOR

Top

Jerome Quelin

COPYRIGHT AND LICENSE

Top


Module-Packaged-Generator documentation Contained in the Module-Packaged-Generator distribution.

#
# This file is part of Module-Packaged-Generator
#
# This software is copyright (c) 2010 by Jerome Quelin.
#
# This is free software; you can redistribute it and/or modify it under
# the same terms as the Perl 5 programming language system itself.
#
use 5.008;
use strict;
use warnings;

package Module::Packaged::Generator::Distribution::Mageia;
BEGIN {
  $Module::Packaged::Generator::Distribution::Mageia::VERSION = '1.111040';
}
# ABSTRACT: mageia driver to fetch available modules

use Moose;
use Path::Class;

extends 'Module::Packaged::Generator::Distribution::Mandriva';


# -- public methods

sub match {
    my $mgarel = file( '/etc/mageia-release' );
    return unless -f $mgarel;
    my $content = $mgarel->slurp;
    return ( $content =~ /mageia/i );
}

1;



__END__