Sha256: b9b7a6dc0d5eeacd38ec6c0c0a41492429a609bf884a1b013e61252864fe5667
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
module Scales module Server class << self def run! ARGV << "--environment" << "#{Scales.env}" server = Server.new runner = Goliath::Runner.new(ARGV, server) runner.app = Goliath::Rack::Builder.build(Server, server) runner.load_plugins(Server.plugins) status = Status.new(runner.address, runner.port) status.start! at_exit{ status.stop! } Scales::Server.status = status runner.run end @@status = nil def status @@status end def status=(status) @@status = status end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scales-server-0.0.1.beta.2 | lib/scales-server/base.rb |