package Dist::Zilla::Plugin::Clean;
{
  $Dist::Zilla::Plugin::Clean::VERSION = '0.03';
}

use Moose;

use warnings;
use strict;

with 'Dist::Zilla::Role::AfterRelease';

=head1 NAME

Dist::Zilla::Plugin::Clean - Clean after release

=head1 VERSION

version 0.03

=head1 SYNOPSIS

In your F<dist.ini>:

    [Clean]

=head1 DESCRIPTION

Ultra simple L<Dist::Zilla> plugin that cleans the working directory after the
release.

=cut

sub after_release {
	my $self = shift;

	$self -> log('cleaning working directory');
	$self -> zilla -> clean;
}

=head1 AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

=head1 LICENSE AND COPYRIGHT

Copyright 2011 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

=cut

no Moose;

__PACKAGE__ -> meta -> make_immutable;

1; # End of Dist::Zilla::Plugin::Clean