Class: IPVSLitmus::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- IPVSLitmus::App
- Defined in:
- lib/ipvs_litmus/app.rb
Instance Method Summary collapse
Instance Method Details
#status_file_path(splat) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/ipvs_litmus/app.rb', line 39 def status_file_path(splat) path = splat.first.split("/") if path.size == 1 ["global_#{path.first}"] else path end end |
#text(response_code, body) ⇒ Object
35 36 37 |
# File 'lib/ipvs_litmus/app.rb', line 35 def text(response_code, body) [response_code, { "Content-Type" => "text/plain" }, body] end |