Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 56182
Status: resolved
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: NKH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: allow simulteaneous installation of modules
a, eg, cpanbrew command that would install modules in all the perlbrew installed perls something like my @modules_to_install = @ARGV ; my @perls = grep {! m~/usr/bin/perl~} qx'perlbrew installed' ; for my $perl (@perls) { system 'perlbrew', 'switch', $perl ; system 'cpan', @modules_to_install ; } but with proper error handling, user feedback and maybe a few options here and there.
On Wed Mar 31 18:20:24 2010, NKH wrote: Show quoted text
> a, eg, cpanbrew command that would install modules in all the perlbrew > installed perls > > something like > > my @modules_to_install = @ARGV ; > > my @perls = grep {! m~/usr/bin/perl~} qx'perlbrew installed' ; > > for my $perl (@perls) > { > system 'perlbrew', 'switch', $perl ; > system 'cpan', @modules_to_install ; > } > > but with proper error handling, user feedback and maybe a few options > here and there. >
Currently we have 'perlbrew exec' to generally exec one command for each installed perl. It is not done in parallel, but that should be OK. For instance, installing cpan module can be easily done: Show quoted text
> perlbrew exec cpanm Acme::Bleach
perl-5.12.3 ========== Acme::Bleach is up to date. (1.12) perl-5.13.10 ========== --> Working on Acme::Bleach Fetching http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Acme-Bleach- 1.12.tar.gz ... OK Configuring Acme-Bleach-1.12 ... OK Building and testing Acme-Bleach-1.12 ... OK Successfully installed Acme-Bleach-1.12 perl-5.13.9 ========== Acme::Bleach is up to date. (1.12) I believe this 'perlbrew exec' should be good enough to close this RT ticket :)