NAME

CTK::Skel - Helper for building project's skeletons

VIRSION

Version 1.00

SYNOPSIS

use CTK::Skel;

my $skel = new CTK::Skel (
    -dir    => "/destination/directory/for/project",
);

my $skel = new CTK::Skel (
    -name   => "ProjectName",
    -root   => "/path/to/project/dir",
    -skels  => {
            foo => 'My::Foo::Module',
            # ...
        },
    -vars   => {
            VAR1 => "abc",
            VAR2 => "def",
            # ...
        },
    -debug  => 1,
);

my $status = $skel->build( "foo", "/path/to/project/dir", {
    VAR3 => 'my value',
    # ...
});

DESCRIPTION

Helper for building project's skeletons

new

my $skel = new CTK::Skel (
    -name   => "ProjectName",
    -root   => "/path/to/project/dir",
    -skels  => {
            foo => 'My::Foo::Module',
            # ...
        },
    -vars   => {
            VAR1 => "abc",
            VAR2 => "def",
            # ...
        },
    -debug  => 1,
);

Returns skeletons helper's object

build

my $status = $skel->build( "foo", "/path/to/project/dir", {
    VAR1 => 'foo',
    VAR2 => 'bar',
    # ...
});

Building "foo" files and directories to "/path/to/project/dir" directory

my $status = $skel->build( "foo", {
    VAR1 => 'foo',
    VAR2 => 'bar',
    # ...
});

Building "foo" files and directories to default directory (see "new")

dirs, pool

Base methods. For internal use only

skels

my @available_skels = $skel->skels();

Returns list of registered skeletons

HISTORY

See Changes file

SEE ALSO

CTK

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

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

See LICENSE file and https://dev.perl.org/licenses/