root / plugins / cpan / cpanp_o @ 62df69c5
Historique | Voir | Annoter | Télécharger (484 octets)
| 1 | 5dd3e258 | ?var Arnfj?r? Bjarmason | #!/usr/bin/env perl |
|---|---|---|---|
| 2 | use Modern::Perl; |
||
| 3 | |||
| 4 | given ($ARGV[0]) {
|
||
| 5 | when ("config") {
|
||
| 6 | print <<END; |
||
| 7 | graph_title CPAN modules not up to date |
||
| 8 | graph_args --base 1000 -l 0 |
||
| 9 | graph_vlabel modules |
||
| 10 | 62df69c5 | Lars Kruse | graph_category security |
| 11 | 5dd3e258 | ?var Arnfj?r? Bjarmason | graph_info The number of installed CPAN modules that aren't up to date |
| 12 | count.label modules |
||
| 13 | count.type GAUGE |
||
| 14 | count.info The number of CPAN modules that aren't up to date |
||
| 15 | END |
||
| 16 | } |
||
| 17 | default {
|
||
| 18 | my $num = () = qx[cpanp -o]; |
||
| 19 | say "count.value $num"; |
||
| 20 | } |
||
| 21 | } |
