3 package Dist::Zilla::Plugin::Oyster::Helper;
5 our $VERSION = 0.01;# VERSION
8 use Dist::Zilla::File::InMemory;
10 extends 'Catalyst::Helper';
12 has _zilla_gatherer => (
16 _zilla_add_file => 'add_file',
20 # we don't want these to do anything
26 sub _mk_podcoveragetest {};
29 my ( $self, $file_obj , $output ) = @_;
31 # unfortunately the stringified $file_obj includes a prepended
32 # {dist_repo} name which dzil already creates if we don't regex it out we
33 # end up with {dist_repo}/{dist_repo}/{files} instead of just
35 my $name = "$file_obj";
36 $name =~ s{[\w-]+/}{};
39 = Dist::Zilla::File::InMemory->new({
44 $file->mode( oct(755) ) if $file->name =~ /script/;
46 $self->_zilla_add_file($file);
48 __PACKAGE__->meta->make_immutable;
51 # ABSTRACT: a subclass of Catalyst::Helper
59 Dist::Zilla::Plugin::Oyster::Helper - a subclass of Catalyst::Helper
67 this is used to override methods in L<Catalyst::Helper> so that it works
76 CONTRIBUTORS TODO (note, based on xenoterracide & t0m's work)
80 =head1 COPYRIGHT AND LICENSE
84 This is free software, licensed under:
86 The Artistic License 2.0