Sha256: f08e8a3f99ef2b19bb91fd52c59ba61dfc41d1cdf813f824d292ee8e02eddd4d
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
require 'rbconfig' def setup ruby = File.join(::Config::CONFIG['bindir'],::Config::CONFIG['ruby_install_name']) ruby << ::Config::CONFIG['EXEEXT'] unless @iowa_pid = fork Dir.chdir('iowa') exec(ruby,'app.rb') end sleep(1) unless @wb_pid = fork exec(ruby,'webrick.rb') end Signal.trap("SIGINT") {teardown} Signal.trap("SIGTERM") {teardown} sleep(1) end def teardown puts "Shutting down." Process.kill 15,@iowa_pid Process.kill 15,@wb_pid exit end setup sleep(99999) while true;
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
IOWA-1.0.3 | components/Content/example/demo.rb |
IOWA-1.0.2 | components/Content/example/demo.rb |
IOWA-1.0.0 | components/Content/example/demo.rb |