Sha256: 2f36015cf8f54de99423462fa9d73f56c0c5ed4a1c81b4fda859ed029dd1ac5f
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
$:.unshift File.expand_path(File.dirname(__FILE__)) require "dante/version" require "dante/runner" =begin Dante.run("process-name") do begin # ...something here rescue Abort # ...shutdown here end end =end module Dante # Forks a process and handles option parsing and start/stopping. # # @example # Dante.run("process-name") { Server.run! } # def self.run(name, options={}, &blk) Runner.new(name, options, &blk).execute end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dante-0.0.3 | lib/dante.rb |
dante-0.0.2 | lib/dante.rb |