Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kentnl/dist-zilla-plugin-ini-baked
Add a baked version of your configuration to tree automatically
https://github.com/kentnl/dist-zilla-plugin-ini-baked
Last synced: 4 days ago
JSON representation
Add a baked version of your configuration to tree automatically
- Host: GitHub
- URL: https://github.com/kentnl/dist-zilla-plugin-ini-baked
- Owner: kentnl
- License: other
- Created: 2014-08-03T02:56:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T16:39:08.000Z (over 7 years ago)
- Last Synced: 2024-06-21T05:01:58.476Z (5 months ago)
- Language: Perl
- Size: 124 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Dist::Zilla::Plugin::INI::Baked - Add a baked version of your configuration to tree automatically
# VERSION
version 0.002003
# SYNOPSIS
# somewhere in dist.ini or even your bundle
[INI::Baked]
; filename = dist.ini.baked
; source_filename = dist.ini# and and
dzil build# and and
cat $MYDIST/dist.ini.baked # yayWhether you wish to
- Copy that file back to `root/`
- Name that file `dist.ini`
- Add/Not add the original `dist.ini` to your built code.All these choices are your discretion, and are presently expected to master other dzil plugins to make this possible.
I recommend:
- [`[CopyFilesFromBuild]`](https://metacpan.org/pod/Dist::Zilla::Plugin::CopyFilesFromBuild)
- [`[CopyFilesFromRelease]`](https://metacpan.org/pod/Dist::Zilla::Plugin::CopyFilesFromRelease)
- Passing exclude rules to [`[Git::GatherDir]`](https://metacpan.org/pod/Dist::Zilla::Plugin::Git::GatherDir)
- Passing exclude rules to [`[GatherDir]`](https://metacpan.org/pod/Dist::Zilla::Plugin::GatherDir)These will of course all still work, because `source_filename` is read directly from `$zilla->root`
Patches to make it read from `$zilla->files` will be accepted, but YAGNI for now.
# METHODS
## `gather_files`
This module subscribes to the [`-FileGatherer`](https://metacpan.org/pod/Dist::Zilla::Role::FileGatherer) role.
As such, this module injects a [`FromCode`](https://metacpan.org/pod/Dist::Zilla::File::FromCode) object during the gather phase.
# ATTRIBUTES
## `filename`
The name of the file to emit.
**DEFAULT**:
dist.ini.baked
## `source_filename`
The name of the file to read
**DEFAULT:**
dist.ini
# AUTHOR
Kent Fredric
# COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric .
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.