Class: Dashy::RestInterface
- Inherits:
-
Object
- Object
- Dashy::RestInterface
- Defined in:
- lib/dashy/rest_interface.rb
Class Method Summary collapse
Class Method Details
.report_status(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dashy/rest_interface.rb', line 8 def self.report_status = {} return unless Dashy::Base.enabled? begin config = Dashy::Base.config SystemTimer.timeout_after(config.timeout) do RestClient.post "#{config.url}/api/requests/#{config.app_id}", :request => end rescue => e puts e end end |