line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::App::Command::install 6.030; |
2
|
|
|
|
|
|
|
# ABSTRACT: install your dist |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
2590
|
use Dist::Zilla::Pragmas; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
34
|
use Dist::Zilla::App -command; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
39
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
9
|
|
|
|
|
|
|
#pod |
10
|
|
|
|
|
|
|
#pod Installs your distribution using a specified command. |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod dzil install [--install-command="cmd"] |
13
|
|
|
|
|
|
|
#pod |
14
|
|
|
|
|
|
|
#pod =cut |
15
|
0
|
|
|
0
|
1
|
|
sub abstract { 'install your dist' } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
#pod =head1 EXAMPLE |
18
|
|
|
|
|
|
|
#pod |
19
|
|
|
|
|
|
|
#pod $ dzil install |
20
|
|
|
|
|
|
|
#pod $ dzil install --install-command="cpan ." |
21
|
|
|
|
|
|
|
#pod |
22
|
|
|
|
|
|
|
#pod =cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub opt_spec { |
25
|
0
|
|
|
0
|
1
|
|
[ 'install-command=s', 'command to run to install (e.g. "cpan .")' ], |
26
|
|
|
|
|
|
|
[ 'keep-build-dir|keep' => 'keep the build directory even after a success' ], |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
#pod =head1 OPTIONS |
30
|
|
|
|
|
|
|
#pod |
31
|
|
|
|
|
|
|
#pod =head2 --install-command |
32
|
|
|
|
|
|
|
#pod |
33
|
|
|
|
|
|
|
#pod This defines what command to run after building the dist in the dist dir. |
34
|
|
|
|
|
|
|
#pod |
35
|
|
|
|
|
|
|
#pod Any value that works with L<C<system>|perlfunc/system> is accepted. |
36
|
|
|
|
|
|
|
#pod |
37
|
|
|
|
|
|
|
#pod If not specified, calls (roughly): |
38
|
|
|
|
|
|
|
#pod |
39
|
|
|
|
|
|
|
#pod cpanm . |
40
|
|
|
|
|
|
|
#pod |
41
|
|
|
|
|
|
|
#pod For more information, look at the L<install|Dist::Zilla::Dist::Builder/install> method in |
42
|
|
|
|
|
|
|
#pod Dist::Zilla. |
43
|
|
|
|
|
|
|
#pod |
44
|
|
|
|
|
|
|
#pod =cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub execute { |
47
|
0
|
|
|
0
|
1
|
|
my ($self, $opt, $arg) = @_; |
48
|
|
|
|
|
|
|
|
49
|
0
|
0
|
|
|
|
|
$self->zilla->install({ |
|
|
0
|
|
|
|
|
|
50
|
|
|
|
|
|
|
$opt->install_command |
51
|
|
|
|
|
|
|
? (install_command => [ $opt->install_command ]) |
52
|
|
|
|
|
|
|
: (), |
53
|
|
|
|
|
|
|
$opt->keep_build_dir |
54
|
|
|
|
|
|
|
? (keep_build_dir => 1) |
55
|
|
|
|
|
|
|
: (), |
56
|
|
|
|
|
|
|
}); |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__END__ |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=pod |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=encoding UTF-8 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 NAME |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Dist::Zilla::App::Command::install - install your dist |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 VERSION |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
version 6.030 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SYNOPSIS |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Installs your distribution using a specified command. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
dzil install [--install-command="cmd"] |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 PERL VERSION |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
84
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
85
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
86
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
89
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
90
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
91
|
|
|
|
|
|
|
the minimum required perl. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 EXAMPLE |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
$ dzil install |
96
|
|
|
|
|
|
|
$ dzil install --install-command="cpan ." |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 OPTIONS |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 --install-command |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
This defines what command to run after building the dist in the dist dir. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Any value that works with L<C<system>|perlfunc/system> is accepted. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
If not specified, calls (roughly): |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
cpanm . |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
For more information, look at the L<install|Dist::Zilla::Dist::Builder/install> method in |
111
|
|
|
|
|
|
|
Dist::Zilla. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 AUTHOR |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo SIGNES. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
122
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |