- group config/library/storage into context

This commit is contained in:
Alex Ling
2020-02-16 18:25:28 +00:00
parent d9129ad58f
commit bb936b1fa6
4 changed files with 47 additions and 34 deletions

View File

@@ -1,11 +1,6 @@
require "./server"
require "./config"
require "./library"
require "./storage"
require "./context"
config = Config.load
library = Library.new config.library_path, config.scan_interval
storage = Storage.new config.db_path
server = Server.new config, library, storage
context = Context.new
server = Server.new context
server.start