Sha256: 55a225360e14d64cccb19dca8a8a3ffd40c0d653c61c0057611de26718e9eb99
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
#!/usr/bin/env ruby $:<<File.expand_path("../../lib",__FILE__) require 'appswarm.rb' options={} #{:httpPort=>2000} opts=OptionParser.new do |opts| opts.banner = "Usage: #{__FILE__} [options]" opts.separator "" opts.separator "Specific options:" opts.on("-d", "--enable-debug", "enable debugging") do options[:debug]=true end opts.on("--http-port PORT") do |port| options[:httpPort]=port.to_i end opts.on("-t","--trace", "enable tracing") do options[:trace]=true end if block_given? yield opts end end opts.parse! c=Appswarm.new(options) c.start $stop=false trap("INT"){ $stop=true } 1.upto(10000) do sleep 1 # Thread.list.each {|t|pp t,t.stacktrace[0..5]} # puts "==" break if $stop break unless c.running end c.stop
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appswarm-0.0.1 | bin/appswarm |