CatalystX::Features::Lib - Push your /lib into @INC


CatalystX-Features documentation Contained in the CatalystX-Features distribution.

Index


Code Index:

NAME

Top

CatalystX::Features::Lib - Push your /lib into @INC

VERSION

Top

version 0.20

SYNOPSIS

Top

	use Catalyst qw/
			CatalystX::Features
			CatalystX::Features::Lib
		/;

METHODS

Top

setup

Pushes your feature /lib in @INC.

TODO

Top

Warn when there are duplicate lib files.

AUTHORS

Top

	Rodrigo de Oliveira (rodrigolive), C<rodrigolive@gmail.com>

LICENSE

Top

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


CatalystX-Features documentation Contained in the CatalystX-Features distribution.

package CatalystX::Features::Lib;
$CatalystX::Features::Lib::VERSION = '0.20';

use Moose;

sub setup {
	my $c = shift;

    $c->next::method(@_);

    my $appname = ref $c || $c;

    foreach my $feature ( $c->features->list ) {
        # change INC
        push @INC, $feature->lib;
	}

}

1;