| 1 | package Module::Setup::Plugin::VC::Bazaar; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use base 'Module::Setup::Plugin'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | our $VERSION = '0.03'; | |||||||||
| 7 | # this code is variation of Module::Setup::Plugin::VC::Git for VC::Bazaar. thx. | ||||||||||
| 8 | |||||||||||
| 9 | sub register | ||||||||||
| 10 | 0 | ▶ | { | ||||||||
|
Subroutine
register: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my $self = shift; | |||||||||
| 12 | 0 | $self->add_trigger( check_skeleton_directory => \&check_skeleton_directory ); | |||||||||
| 13 | 0 | ▶ | $self->add_trigger( append_template_file => sub { $self->append_template_file(@_) } ); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | sub check_skeleton_directory | ||||||||||
| 17 | 0 | ▶ | { | ||||||||
|
Subroutine
check_skeleton_directory: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||
| 18 | 0 | my $self = shift; | |||||||||
| 19 | 0 | ▶ | return unless $self->dialog("Bzr init? [Yn] ", 'y') =~ /[Yy]/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | !$self->system(qw/bzr init/) or die $?; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | ▶ | !$self->system(qw/bzr add/) or die $?; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | !$self->system(qw/bzr commit -m/, 'initial commit') or die $?; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||
| 28 | |||||||||||
| 29 | =head1 NAME | ||||||||||
| 30 | |||||||||||
| 31 | Module::Setup::Plugin::VC::Bazaar - Bazaar plugin | ||||||||||
| 32 | |||||||||||
| 33 | =head1 SYNOPSIS | ||||||||||
| 34 | |||||||||||
| 35 | module-setup --init --plugin=VC::Bazaar | ||||||||||
| 36 | |||||||||||
| 37 | =head1 AUTHOR | ||||||||||
| 38 | |||||||||||
| 39 | turugina E<lt>turugina {at} cpan.orgE<gt> | ||||||||||
| 40 | |||||||||||
| 41 | =head1 SEE ALSO | ||||||||||
| 42 | |||||||||||
| 43 | L<Module::Setup> | ||||||||||
| 44 | |||||||||||
| 45 | =head1 LICENSE | ||||||||||
| 46 | |||||||||||
| 47 | This library is free software; you can redistribute it and/or modify | ||||||||||
| 48 | it under the same terms as Perl itself. | ||||||||||
| 49 | |||||||||||
| 50 | =cut | ||||||||||
| 51 | |||||||||||
| 52 | __DATA__ | ||||||||||