Class: Oschii::RefreshCloud

Inherits:
Servlet
  • Object
show all
Defined in:
lib/oschii/servlets.rb

Instance Attribute Summary

Attributes inherited from Servlet

#cloud

Instance Method Summary collapse

Methods inherited from Servlet

#add_headers, #initialize

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