| 1 | use strictures 2; | ||
| 2 | |||
| 3 | package Dist::Zilla::MintingProfile::ZURBORG; | ||
| 4 | |||
| 5 | our $VERSION = '0.007'; # VERSION | ||
| 6 | |||
| 7 | use Moose; | ||
| 8 | |||
| 9 | with 'Dist::Zilla::Role::MintingProfile' => { -version => '5.047' }; | ||
| 10 | |||
| 11 | use File::ShareDir; | ||
| 12 | use Path::Tiny; | ||
| 13 | use Carp; | ||
| 14 | use namespace::autoclean; | ||
| 15 | |||
| 16 | sub profile_dir | ||
| 17 | { | ||
| 18 | my ($self, $profile_name) = @_; | ||
| 19 | |||
| 20 | my $dist_name = 'Dist-Zilla-PluginBundle-ZURBORG'; # '{{ $dist->name }}'; | ||
| 21 | |||
| 22 | my $profile_dir = path(File::ShareDir::dist_dir($dist_name))->child('profiles', $profile_name); | ||
| 23 | |||
| 24 | return $profile_dir if -d $profile_dir; | ||
| 25 | |||
| 26 | confess "Can't find profile $profile_name via $self: it should be in $profile_dir"; | ||
| 27 | } | ||
| 28 | |||
| 29 | __PACKAGE__->meta->make_immutable; | ||
| 30 | |||
| 31 | __END__ |