Haineko::CLI::Setup - Setup files for Haineko
Haineko::CLI::Setup provide methods for setting up files for Haineko/hainekoctl script.
use Haineko::CLI::Setup; my $s = Haineko::CLI::Setup->new(); $s->parseoptions; # Parse command-line options $d->make; # Update Haineko::CLI::Setup::Data module $d->init; # Copy files for Haineko to current directory
make()
make() method update the contents of Haineko/CLI/Setup/Data.pm for setting up files of Haineko. This method will be used by Haineko author only.
my $s = Haineko::CLI::Setup->new(); $s->parseoptions; $s->make;
init()
init() method copy files for Haineko to the current directory. The source of files are extracted from Haineko::CLI::Setup::Data::DATA section as a BASE64 encoded test, and configuration files and psgi file are copied to the current directory or the directory specified with --dest option of hainekoctl script.
--dest
hainekoctl
parseoptions()
parseoptions() method parse options given at command line and returns the value of run-mode.
help()
help() prints help message of Haineko::CLI::Setup for command line.
Haineko::CLI - Base class of Haineko::CLI::Setup
"haineoctl" in bin - Script of Haineko::CLI::* implementation
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.