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

Version Path
scout_realtime-1.0.5 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-1.0.4 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-1.0.3 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-1.0.3.pre lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-1.0.2 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-1.0.1 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-1.0.0 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-0.5.5 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-0.5.5.pre lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-0.5.4 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-0.5.3 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-0.5.2 lib/vendor/dante-0.2.0/lib/dante.rb
scout_realtime-0.5.1 lib/vendor/dante-0.2.0/lib/dante.rb
dante-0.2.0 lib/dante.rb
dante-0.1.5 lib/dante.rb
dante-0.1.4 lib/dante.rb
dante-0.1.3 lib/dante.rb
dante-0.1.2 lib/dante.rb
dante-0.1.1 lib/dante.rb
dante-0.1.0 lib/dante.rb