Env::File

allow for "$PASSWORD_FILE" to fill in the value of "$PASSWORD" from a file, especially for Docker's secrets feature

NAME

Env::File - allow for "PASSWORD" from a file, especially for Docker's secrets feature

SYNOPSIS

use Env::File;
my $password =  %ENVFILE<PASSWORD> ||
        die("Missing PASSWORD or PASSWORD_FILE in environment");

DESCRIPTION

Env::File export the "%ENVFILE" variable that contains:

  • a copy of all "%*ENV" key value pairs

  • for each environment variables of type "$XYZ_FILE", an XYZ key which contains the content of this file

AUTHOR

sthiriet [email protected]

COPYRIGHT AND LICENSE

Copyright 2022 sthiriet

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Env::File v0.0.1

allow for "$PASSWORD_FILE" to fill in the value of "$PASSWORD" from a file, especially for Docker's secrets feature

Authors

  • thisamu

License

Artistic-2.0

Dependencies

Test::Mock

Test Dependencies

Provides

  • Env::File

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.