module LuckyEnv

Defined in:

lucky_env.cr
lucky_env/errors.cr
lucky_env/parser.cr

Constant Summary

VERSION = {{ (`shards version \"/srv/crystaldoc.info/github-luckyframework-lucky_env-v0.2.0/src\"`).chomp.stringify }}

Class Method Summary

Macro Summary

Class Method Detail

def self.development? : Bool #

[View source]
def self.environment : String #

[View source]
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


[View source]
def self.load?(file_path : String) : Hash(String, String) | Nil #

Returns nil if the file is missing


[View source]
def self.production? : Bool #

[View source]
def self.task? : Bool #

[View source]
def self.test? : Bool #

[View source]

Macro Detail

macro add_env(name) #

[View source]