No commit activity in last 3 years
No release in over 3 years
Ruby wrapper around running gearmand
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

GearmandControl

Control a gearmand process with Ruby. In writing Gearman workers and clients, I've found this useful when running integration tests.

Example

# start gearmand, listening on 4730
gearmand = GearmandControl.new
gearmand.start

# attempt to open a TCP connection on localhost:4730
# raises GearmandControl::TestFailed if it cannot
gearmand.test!

# get the process's PID
gearmand.pid

# have we started?
gearman.started?

# stop gearmand
gearmand.stop

TODO

  • gearmand takes a number of options. Make it easy to set those.