Dist::Zilla::App::Command::release - release your dist to the CPAN


Dist-Zilla documentation Contained in the Dist-Zilla distribution.

Index


Code Index:

NAME

Top

Dist::Zilla::App::Command::release - release your dist to the CPAN

VERSION

Top

version 4.200008

SYNOPSIS

Top

  dzil release

  dzil release --trial

This command is a very, very thin wrapper around the release method on the Dist::Zilla object. It will build, archive, and release your distribution using your Releaser plugins. The only option, --trial, will cause it to build a trial build.

AUTHOR

Top

Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT AND LICENSE

Top


Dist-Zilla documentation Contained in the Dist-Zilla distribution.

use strict;
use warnings;
package Dist::Zilla::App::Command::release;
BEGIN {
  $Dist::Zilla::App::Command::release::VERSION = '4.200008';
}
# ABSTRACT: release your dist to the CPAN
use Dist::Zilla::App -command;


sub abstract { 'release your dist' }

sub opt_spec {
  [ 'trial' => 'build a trial release that PAUSE will not index' ],
}

sub execute {
  my ($self, $opt, $arg) = @_;

  my $zilla = $self->zilla;

  $zilla->is_trial(1) if $opt->trial;

  $self->zilla->release;
}

1;

__END__