| Module-New documentation | Contained in the Module-New distribution. |
Module::New::Command::ShipIt
adds .shipit file to the distribution.
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Module-New documentation | Contained in the Module-New distribution. |
package Module::New::Command::ShipIt; use strict; use warnings; use Carp; use Module::New::Meta; use Module::New::Queue; functions { shipit => sub (;%) { my %options = @_; Module::New::Queue->register(sub { my $self = shift; my $context = Module::New->context; return if $options{optional} && !$context->config('shipit'); $context->files->add('ShipIt'); }) } }; 1; __END__