diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-16 11:07:45 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-16 11:07:45 -0600 |
commit | 7262a7d2e3782d375ec054ace234c7ad730e67bb (patch) | |
tree | 6a421f11908d57ca33f222054f5ce1fa09998ae6 | |
parent | be1e0792273b71a922fd5231d2f5097b79cc1411 (diff) | |
download | dist-zilla-pluginbundle-doy-7262a7d2e3782d375ec054ace234c7ad730e67bb.tar.gz dist-zilla-pluginbundle-doy-7262a7d2e3782d375ec054ace234c7ad730e67bb.zip |
allow testing release with a env var too
-rw-r--r-- | lib/Dist/Zilla/PluginBundle/DOY.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Dist/Zilla/PluginBundle/DOY.pm b/lib/Dist/Zilla/PluginBundle/DOY.pm index b3afd03..922225a 100644 --- a/lib/Dist/Zilla/PluginBundle/DOY.pm +++ b/lib/Dist/Zilla/PluginBundle/DOY.pm @@ -73,7 +73,11 @@ has is_test_dist => ( is => 'ro', isa => 'Bool', lazy => 1, - default => sub { shift->dist =~ /^Foo-/ ? 1 : 0 }, + default => sub { + my $self = shift; + return 1 if $ENV{DZIL_FAKE_RELEASE}; + return $self->dist =~ /^Foo-/ ? 1 : 0 + }, ); has git_remote => ( |