File: cgistub.erb

package info (click to toggle)
libwebapp-ruby 0.4-2.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 240 kB
  • sloc: ruby: 2,245; makefile: 79
file content (12 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!<%= require 'rbconfig'
      "#{Config::CONFIG["bindir"]}/#{Config::CONFIG["ruby_install_name"]}" %>

# This file is auto-generated stub file.  Don't edit.

script_abspath = <%= require 'pathname'
                     Pathname.new(ARGV[0]).realpath.to_s.dump %>

script_dir = File.dirname(script_abspath)
$:.replace [script_dir] | $:
require 'webapp'
WebApp.run_webapp_via_stub(script_abspath)