A Guardfile for Redis

I ran into a project that required a running Redis server for the tests and development environment to work. Here’s what I threw into the Guardfile to make sure a Redis server was running during development. It starts a new daemonized redis-server instance with a customizable port number. The executable can be specified in case you need to use a specific installation of Redis.

I’d like to make a real Guard plugin gem out of this but I thought I’d put up what I have since who knows when I’ll get around to that.