| Dist-Zilla documentation | Contained in the Dist-Zilla distribution. |
Dist::Zilla::Role::MintingProfile::ShareDir - something that keeps its minting profile in a sharedir
version 4.200008
This role includes Dist::Zilla::Role::MintingProfile, providing a
profile_dir method that looks in the module's ShareDir.
Ricardo SIGNES <rjbs@cpan.org>
This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Dist-Zilla documentation | Contained in the Dist-Zilla distribution. |
package Dist::Zilla::Role::MintingProfile::ShareDir; BEGIN { $Dist::Zilla::Role::MintingProfile::ShareDir::VERSION = '4.200008'; } # ABSTRACT: something that keeps its minting profile in a sharedir use Moose::Role; with 'Dist::Zilla::Role::MintingProfile'; use File::ShareDir; use Path::Class; sub profile_dir { my ($self, $profile_name) = @_; my $profile_dir = dir( File::ShareDir::module_dir($self->meta->name) ) ->subdir( $profile_name ); return $profile_dir if -d $profile_dir; confess "Can't find profile $profile_name via $self"; } no Moose::Role; 1; __END__