Dist-Zilla-Plugin-UploadToGoogleCode
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/UploadToGoogleCode.pm view on Meta::CPAN
return;
};
return $last_release->serialize;
},
);
sub before_release {
my $self = shift;
$self->$_ || $self->log_fatal("You need to supply a $_")
for qw(username password project);
}
sub release {
my ($self, $archive) = @_;
try {
my $url = $self->upload(
file => "$archive",
summary => $self->summary,
labels => $self->labels,
( $self->description ? (description => $self->description) : ()),
);
$self->log("Uploaded to $url");
}
catch {
$self->log("The file wasn't uploaded: $_");
};
}
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Dist::Zilla::Plugin::UploadToGoogleCode - upload your dist to Google Code (deprecated)
=head1 VERSION
version 0.004
=head1 SYNOPSIS
B<DEPRECATED>: Google code L<shut down|http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html>
If loaded, this plugin will allow the F<release> command to upload to Google Code.
=head1 DESCRIPTION
This plugin looks for the Google Code project name in F<dist.ini>, and gets your
Google Code credentials from F<~/.googlecode-identity> (which can be
GnuPG-encrypted; see L<Config::Identity>).
If any configuration is missing, it will prompt you to enter your
username and password during the BeforeRelease phase. Entering a
blank username or password will abort the release.
=head1 METHODS
=head2 before_release
Checks that we have the data we need to release.
=head2 release
Performs the release using L<Google::Code::Upload>.
=for Pod::Coverage mvp_multivalue_args
=for test_synopsis 1;
__END__
=head1 ATTRIBUTES
=head2 username
This option supplies the user's Google Code username. If not supplied, it will
be looked for in the user's GoogleCode configuration.
=head2 password
This option supplies the user's Google Code password (ie, from
L<https://code.google.com/hosting/settings>). If not supplied, it will be
looked for in the user's GoogleCode configuration.
=head2 googlecode_cfg
This is a hashref of defaults loaded from F<~/.googlecode-identity>.
=head1 AVAILABILITY
The project homepage is L<http://metacpan.org/release/Dist-Zilla-Plugin-UploadToGoogleCode/>.
The latest version of this module is available from the Comprehensive Perl
Archive Network (CPAN). Visit L<http://www.perl.com/CPAN/> to find a CPAN
site near you, or see L<https://metacpan.org/module/Dist::Zilla::Plugin::UploadToGoogleCode/>.
=head1 SOURCE
The development version is on github at L<http://github.com/doherty/Dist-Zilla-Plugin-UploadToGoogleCode>
and may be cloned from L<git://github.com/doherty/Dist-Zilla-Plugin-UploadToGoogleCode.git>
=head1 BUGS AND LIMITATIONS
You can make new bug reports, and view existing ones, through the
web interface at L<https://github.com/doherty/Dist-Zilla-Plugin-UploadToGoogleCode/issues>.
=head1 AUTHOR
Mike Doherty <doherty@cpan.org>
( run in 0.493 second using v1.01-cache-2.11-cpan-ceb78f64989 )