Class: UREST::ForkProg

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/urest.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



175
176
177
178
179
180
181
182
183
184
# File 'lib/urest.rb', line 175

def response
  opts = @a[0]
  fname = File.join(opts['dir'],@r[1..-2].join('/'))
  if opts['progs'].include? fname
    UREST::start_program(opts,fname)
  else
    @status = 403
  end
  nil
end