NAME
Setup::File::Layout - Setup files using layout
VERSION
This document describes version 0.01 of Setup::File::Layout (from Perl distribution Setup-File-Layout), released on 2015-09-11.
SYNOPSIS
SEE ALSO
FUNCTIONS
setup_files_using_layout(%args) -> [status, msg, result, meta]
Setup files using layout.
For more details on the format of the layout, see File::Create::Layout
.
This function is idempotent (repeated invocations with same arguments has the same effect as single invocation). This function supports transactions.
Arguments ('*' denotes required arguments):
layout* => str
Layout.
prefix* => str
Starting path to create the layout in.
Special arguments:
-tx_action => str
For more information on transaction, see Rinci::Transaction.
-tx_action_id => str
For more information on transaction, see Rinci::Transaction.
-tx_recovery => str
For more information on transaction, see Rinci::Transaction.
-tx_rollback => str
For more information on transaction, see Rinci::Transaction.
-tx_v => str
For more information on transaction, see Rinci::Transaction.
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Setup-File-Layout.
SOURCE
Source repository is at https://github.com/perlancar/perl-Setup-File-Layout.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Setup-File-Layout
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.