Sha256: 2372b6bd7578b337a7713accfada17158dd220733961cf4e6993ebebea60ab5c

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

module Mack
  # Even though it's called, SimpleServer, this might be the only server you need to run
  # a Mack application.
  # 
  # This SimpleServer does not use Thin. But does work with anything that Rack has a handler for.
  class SimpleServer
    
    class << self
      
      def run(options)
        r = "Rack::Handler::#{options[:handler].camelcase}"
        puts "Starting app using: #{r} in #{options[:environment]} mode on port: #{options[:port]}"
        eval(r).run(Mack::Utils::Server.build_app, :Port => options[:port])
      end
      
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mack-0.7.1.1 lib/mack/initialization/server/simple_server.rb
mack-0.7.1 lib/mack/initialization/server/simple_server.rb
mack-0.8.0.100 lib/mack/initialization/server/simple_server.rb
mack-0.8.0.101 lib/mack/initialization/server/simple_server.rb
mack-0.8.0 lib/mack/initialization/server/simple_server.rb
mack-0.8.0.2 lib/mack/initialization/server/simple_server.rb