From 8f4def5407b23cfb76e63fda441330a6fbac381c Mon Sep 17 00:00:00 2001 From: Vitalii Elenhaupt Date: Tue, 14 Nov 2017 11:48:06 +0200 Subject: [PATCH] Load default config if no cli args specified --- src/ameba/config.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ameba/config.cr b/src/ameba/config.cr index 5be157bb..44a2f207 100644 --- a/src/ameba/config.cr +++ b/src/ameba/config.cr @@ -12,6 +12,10 @@ class Ameba::Config Config.new YAML.parse(content) end + def self.load(path : Nil) + self.load + end + def files @files ||= default_files end