Skip to content

Commit

Permalink
UploadToCPAN: only require a Login stash, not a PAUSE
Browse files Browse the repository at this point in the history
PAUSE is really just a Login but you can put the credentials in the
configuration.  Why did I do this?  I have no idea, but I did.  If we
make it require a Login stash instead, we can use a stash with other
behavior, like fetching from an authenticated password manager.
  • Loading branch information
rjbs committed May 25, 2024
1 parent b8b9b65 commit 456e694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/Plugin/UploadToCPAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ You can't put your password in your F<dist.ini>. C'mon now!

=attr credentials_stash
This attribute holds the name of a L<PAUSE stash|Dist::Zilla::Stash::PAUSE>
This attribute holds the name of a L<PAUSE stash|Dist::Zilla::Stash::Login>
that will contain the credentials to be used for the upload. By default,
UploadToCPAN will look for a C<%PAUSE> stash.
Expand All @@ -72,7 +72,7 @@ has credentials_stash => (

has _credentials_stash_obj => (
is => 'ro',
isa => maybe_type( class_type('Dist::Zilla::Stash::PAUSE') ),
isa => maybe_type( role_type('Dist::Zilla::Stash::Login') ),
lazy => 1,
init_arg => undef,
default => sub { $_[0]->zilla->stash_named( $_[0]->credentials_stash ) },
Expand Down

0 comments on commit 456e694

Please sign in to comment.