Project

executer

0.0
No commit activity in last 3 years
No release in over 3 years
A daemon that executes commands given to it
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.0

Runtime

~> 2.2.2
~> 1.0.0
 Project Readme

Executer

A daemon that executes commands given to it.

Requirements

  • redis
  • executer gem: gem install executer

Setup

You'll need to set up the executer.yml to point to the redis server executer will use. Example:

$ cat config/executer.yml
redis: localhost:6379

To start the daemon:

executer config/executer.yml

Starting executer server (redis @ localhost:6379)...

To use the client and push commands to the daemon:

$ irb
> require 'executer'
> Executer::Client.new('localhost:6379').run :cmd => 'uname >> /tmp/uname.txt', :id => 1

To verify that the command got executed:

$ cat /tmp/uname.txt 
Darwin