MooX::HasEnv - Making attributes based on ENV variables
version 0.004
package MyApp::Config; use MooX::HasEnv; # also adds use Moo; has_env var => MYAPP_VARIABLE => '0'; has_env var_name => 'MYAPP_VARIABLE_NAME'; # no default has_env foo => undef, '2'; use Path::Class; has_env root => MYAPP_ROOT => file(__FILE__)->parent->parent->parent->absolute."";
IRC
Join #web-simple on irc.perl.org. Highlight Getty for fast reaction :).
Repository
http://github.com/Getty/p5-moox-hasenv Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-moox-hasenv/issues
Torsten Raudssus <torsten@raudss.us>
This software is copyright (c) 2012 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MooX::HasEnv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooX::HasEnv
CPAN shell
perl -MCPAN -e shell install MooX::HasEnv
For more information on module installation, please visit the detailed CPAN module installation guide.