Sha256: 754e966409951bd015dd510deb3e72edc1c25d0e3623676ef42c4a405373b6a4

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 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 takes some list of params. I don't really know what this does.
  #
  # @example
  #   Dante.run("process-name") { Server.run! }
  #
  def self.run(name, options={}, &blk)
    Runner.new(name, options, &blk).execute!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dante-0.0.1 lib/dante.rb