Class: Oschii::RefreshCloud
- Inherits:
-
Servlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- Servlet
- Oschii::RefreshCloud
- Defined in:
- lib/oschii/servlets.rb
Instance Attribute Summary
Attributes inherited from Servlet
Instance Method Summary collapse
Methods inherited from Servlet
Constructor Details
This class inherits a constructor from Oschii::Servlet
Instance Method Details
#do_POST(req, res) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/oschii/servlets.rb', line 35 def do_POST(req, res) Thread.new do cloud.populate end res.status = 200 res.content_type = 'text/plain' res.body = 'Refreshing Cloud' end |