Class: UREST::GetProg
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- UREST::GetProg
- Defined in:
- lib/urest.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
163 164 165 166 167 168 169 170 171 172 |
# File 'lib/urest.rb', line 163 def response opts = @a[0] fname = File.join(opts['dir'],@r[1..-1].join('/')) if opts['progs'].include? fname return Riddl::Parameter::Complex.new('file','application/octet-stream',UREST::download_program(opts,fname),File.basename(fname)) else @status = 403 end nil end |