Module::New::Command::ShipIt - Module::New::Command::ShipIt documentation


Module-New documentation Contained in the Module-New distribution.

Index


Code Index:

NAME

Top

Module::New::Command::ShipIt

FUNCTIONS

Top

shipit

adds .shipit file to the distribution.

AUTHOR

Top

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Top


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__