lib/legion/settings.rb in legion-settings-1.0.0 vs lib/legion/settings.rb in legion-settings-1.1.0
- old
+ new
@@ -5,9 +5,10 @@
module Legion
module Settings
class << self
attr_accessor :loader
+
def load(options = {})
@loader = Legion::Settings::Loader.new
@loader.load_env
@loader.load_file(options[:config_file]) if options[:config_file]
@loader.load_directory(options[:config_dir]) if options[:config_dir]