Class: Up::Application
- Inherits:
-
Object
- Object
- Up::Application
- Defined in:
- lib/up.rb
Class Method Summary collapse
Class Method Details
.new(dir) ⇒ Object
23 24 25 26 27 |
# File 'lib/up.rb', line 23 def self.new(dir) Rack::Builder.new do run Rack::Directory.new(dir) end end |
.quit!(server) ⇒ Object
17 18 19 20 21 |
# File 'lib/up.rb', line 17 def self.quit!(server) ## Use thins' hard #stop! if available, otherwise just #stop server.respond_to?(:stop!) ? server.stop! : server.stop puts "\n== Up has stopped" end |