NAME
Installer - What does it do? It installs stuff....
VERSION
version 0.904
SYNOPSIS
use
Installer;
install_to
$ENV
{HOME}.
'/myenv'
=>
sub
{
perl
"5.18.1"
;
pgport
=> 15432,
};
$_
[0]->run(
$_
[0]->unpack_path,
'make'
,
'check'
);
};
cpanm
"DBD::Pg"
;
};
Or in class usage (not suggested):
use
Installer::Target;
my
$target
= Installer::Target->new(
target_directory
=>
$ENV
{HOME}.
'/myenv'
,
output_code
=>
sub
{
your_own_logger(
join
(
" "
,
@_
));
},
);
$target
->prepare_installation;
$target
->install_perl(
"5.18.1"
);
$target
->install_file(
"postgresql-9.2.4.tar.gz"
,
with
=> {
pgport
=> 15432,
});
$target
->install_cpanm(
"DBD::Pg"
,
"Plack"
);
# will run in the target directory
$target
->install_run(
"command"
,
"--with-args"
);
$target
->finish_installation;
# to get the filename of the log produced on the installation
$target
->log_filename;
my
$other_usage
= Installer::Target->new(
target_directory
=>
$ENV
{HOME}.
'/otherenv'
,
installer_code
=>
sub
{
$_
[0]->install_perl(
"5.18.1"
);
$_
[0]->install_cpanm(
"Task::Kensho"
);
},
);
$other_usage
->installation;
DESCRIPTION
You should use this through the command installto.
TOTALLY BETA, PLEASE TEST :D
SUPPORT
IRC
Join
#cindustries on irc.quakenet.org. Highlight Getty for fast reaction :).
Repository
Pull request and additional contributors are welcome
Issue Tracker
AUTHOR
Torsten Raudssus <torsten@raudss.us>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.