Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kentnl/dist-zilla-plugin-if-env

Load a plugin when an ENV key is true
https://github.com/kentnl/dist-zilla-plugin-if-env

Last synced: 4 days ago
JSON representation

Load a plugin when an ENV key is true

Awesome Lists containing this project

README

        

# NAME

Dist::Zilla::Plugin::if::ENV - Load a plugin when an ENV key is true.

# VERSION

version 0.001002

# SYNOPSIS

[if::ENV]
key = UBERTESTING
dz_plugin = Some::Plugin
dz_plugin_name = UBERTEST/Some::Plugin
>= some_plugin_argument = itsvalue
>= some_plugin_argument = itsvalue

Then

dzil build # Some::Plugin not loaded, but declared as a develop dep anyway
UBERTESTING=1 dzil build # Some::Plugin loaded!
UBERTESTING=0 dzil build # Some::Plugin NOT loaded

## SEE ALSO

- `[if]` - [Dist::Zilla::Plugin::if](https://metacpan.org/pod/Dist::Zilla::Plugin::if)
- `[if::not]` - [Dist::Zilla::Plugin::if::not](https://metacpan.org/pod/Dist::Zilla::Plugin::if::not)
- `[if::not::ENV]` - [Dist::Zilla::Plugin::if::not::ENV](https://metacpan.org/pod/Dist::Zilla::Plugin::if::not::ENV)
- `PluginLoader::Configurable role` - [Dist::Zilla::Role::PluginLoader::Configurable](https://metacpan.org/pod/Dist::Zilla::Role::PluginLoader::Configurable)
- `PluginLoader role` - [Dist::Zilla::Role::PluginLoader](https://metacpan.org/pod/Dist::Zilla::Role::PluginLoader)
- `PluginLoader util` - [Dist::Zilla::Util::PluginLoader](https://metacpan.org/pod/Dist::Zilla::Util::PluginLoader)

# 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.