Top Level Namespace

Includes:
WEBrick

Defined Under Namespace

Modules: Ruined

Instance Method Summary collapse

Instance Method Details

#kill_childObject



13
14
15
16
17
# File 'lib/uined.rb', line 13

def kill_child()
  open('http://localhost:8383/quit') do |h|
    h.read
  end
end

#quit_svr(c, svr) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/uined.rb', line 19

def quit_svr(c, svr)
  Thread.start do
    sleep(1)
    svr.shutdown
    puts 'svr stopped'
  end
end

#run_appObject



6
7
8
9
10
11
# File 'lib/uined.rb', line 6

def run_app()
  argv = $DEBUG ? ['-d'] : []
  argv += ['-rruined/ruinmain', $0]
  argv += ARGV
  spawn "#{RbConfig::ruby}", *argv
end