lib/smallcage/commands/server.rb in smallcage-0.2.9 vs lib/smallcage/commands/server.rb in smallcage-0.3.0
- old
+ new
@@ -1,7 +1,9 @@
module SmallCage::Commands
class Server
def self.execute(opts)
+ require 'smallcage/http_server'
+
document_root = opts[:path]
port = opts[:port]
server = SmallCage::HTTPServer.new(document_root, port)