module LuckyEnv
Defined in:
lucky_env.crlucky_env/errors.cr
lucky_env/parser.cr
Constant Summary
-
VERSION =
{{ (`shards version \"/srv/crystaldoc.info/github-zw963-lucky_env-main/src\"`).chomp.stringify }}
Class Method Summary
- .development?
- .environment
-
.load(file_path : String) : Hash(String, String)
Parses the
file_path
, and loads the results in toENV
raisesLuckyEnv::MissingFileError
if the file is missing -
.load?(file_path : String) : Hash(String, String) | Nil
Returns
nil
if the file is missing - .production?
- .task?
- .test?
Macro Summary
Class Method Detail
def self.load(file_path : String) : Hash(String, String)
#
Parses the file_path
, and loads the results in to ENV
raises LuckyEnv::MissingFileError
if the file is missing
def self.load?(file_path : String) : Hash(String, String) | Nil
#
Returns nil
if the file is missing