Project

fate

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Tool for running and interacting with a multi-process service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.12.0
>= 0.1.7

Runtime

>= 0.2.10
>= 1.7.5
~> 1.0.10
>= 0.2.0
 Project Readme

Install

gem install fate

Configure

Example of a service spec:

{
  "commands": {
    "redis": "redis-server ./redis.conf",
    "mongod": "mongod run --quiet",
    "http_server": "./bin/server -h 127.0.0.1 -p 8080",
  }
}

Use

Command line usage:

fate -c service.json

Usage within Ruby:

require "fate"
require "json"
string = File.read("service.json")
configuration = JSON.parse(string, :symbolize_names => true)
spawner = Fate.new(configuration, :service_log => "logs/service.log")

spawner.start do
  # run your tests
  # when this block finishes evaluation, Fate shuts down the service
end