From 95e31f6daffb634690ad910a621ba907987ab9c9 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 5 Mar 2016 19:23:06 -0500 Subject: refactor run --- src/guff/run.cr | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/guff/run.cr (limited to 'src/guff') diff --git a/src/guff/run.cr b/src/guff/run.cr new file mode 100644 index 0000000..2b7e966 --- /dev/null +++ b/src/guff/run.cr @@ -0,0 +1,16 @@ +require "./config" +require "./model" +require "./server" + +module Guff + def self.run(app, args) + # parse env and cli options + config = Config.new(app, args) + + # create model + model = Model.new(config) + + # create and run server + Server.run(model, config) + end +end -- cgit v1.2.3