Load default config if no cli args specified

This commit is contained in:
Vitalii Elenhaupt 2017-11-14 11:48:06 +02:00
parent 06855816d7
commit 8f4def5407
No known key found for this signature in database
GPG Key ID: 7558EF3A4056C706
1 changed files with 4 additions and 0 deletions

View File

@ -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