No description or website provided.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
lib
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
executer.gemspec

README.md

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