Dist-Zilla-Plugin-Subversion
view release on metacpan or search on metacpan
lib/Dist/Zilla/Role/Subversion.pm view on Meta::CPAN
sub _make_notify_callback {
my $self = shift;
return sub {
my ( $path, $action, $node_kind, $mime, $state, $revision_num )
= @ARG;
$self->log(
join q{ },
'[SVN]',
grep {$ARG} (
$_ACTION_NAME{$action}, $_STATE_NAME{$state},
$_NODE_NAME{$node_kind}, $path,
"r$revision_num",
),
);
return;
};
}
sub _codes_to_hash {
my $package = (shift) . q{::};
no strict 'refs';
return map { ${ ${$package}{$ARG} } => $ARG }
grep { ${ ${$package}{$ARG} } }
keys %{$package};
}
sub _log_commit_info {
my ( $self, $commit_info, $message ) = @ARG;
$self->log(
join q{ }, $commit_info->author(),
$message, $commit_info->revision(),
'on', $commit_info->date(),
);
return;
}
no Moose::Role;
1;
=pod
=head1 NAME
Dist::Zilla::Role::Subversion - does Subversion actions for a distribution
=head1 VERSION
version 1.101590
=head1 DESCRIPTION
This role is used within the Subversion plugin to provide common attributes
and defaults.
=head1 ATTRIBUTES
=head2 svn_user
Your Subversion user ID. Defaults to the cached credentials for your
distribution's working copy.
=head2 svn_password
Your Subversion password. Defaults to the cached credentials for your
distribution's working copy.
=head2 working_url
URL for the directory currently holding your distribution. Defaults to your
distribution's repository location as stated in your C<META.yml> file, or
the URL associated with the current working copy.
=encoding utf8
=head1 AUTHOR
Mark Gardner <mjgardner@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Mark Gardner.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
__END__
( run in 1.059 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )