Sha256: f7291b58b1127422538a124c847eac833b030fefc8049244adea43c1fdefb37c
Contents?: true
Size: 433 Bytes
Versions: 20
Compression:
Stored size: 433 Bytes
Contents
require "dante/version" require "dante/runner" =begin Dante.run("process-name") do begin # ...something here rescue Interrupt # ...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
20 entries across 20 versions & 2 rubygems