package Dist::Zilla::Plugin::Clean;
  $Dist::Zilla::Plugin::Clean::VERSION = '0.07';

use strict;
use warnings;

use Moose;

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

=head1 NAME

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

=head1 VERSION

version 0.07


In your F<dist.ini>:



B<Dist::Zilla::Plugin::Clean> is a simple L<Dist::Zilla> plugin thet cleans the
working directory (just like C<dzil clean>) after a release.


sub after_release {
	my $self = shift;

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

=head1 AUTHOR

Alessandro Ghedini <>


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 for more information.


no Moose;

__PACKAGE__ -> meta -> make_immutable;

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