NAME

Haineko::CLI::Setup - Setup files for Haineko

DESCRIPTION

Haineko::CLI::Setup provide methods for setting up files for Haineko/hainekoctl script.

SYNOPSIS

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

INSTANCE METHODS

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.

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.

SEE ALSO

REPOSITORY

https://github.com/azumakuniyuki/Haineko

AUTHOR

azumakuniyuki <perl.org [at] azumakuniyuki.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.