Module: Dante

Defined in:
lib/dante.rb,
lib/dante/runner.rb,
lib/dante/version.rb

Overview

This is a utility for setting up a binary executable for a service.

# Dante::Runner.new(“buffet”, :pid_path => “/var/run/buffet.pid”) do # …startup service here… # end

Defined Under Namespace

Classes: Runner

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.run(name, options = {}, &blk) ⇒ Object

Forks a process and handles option parsing and start/stopping.

Examples:

Dante.run("process-name") { Server.run! }


23
24
25
# File 'lib/dante.rb', line 23

def self.run(name, options={}, &blk)
  Runner.new(name, options, &blk).execute
end