The name sucks, I know.
This is a simple IRC Bot to manage shared machines through a team. It's built using the Cinch IRC Bot Building Framework and hadn't had a chace to be activelly used yet.
Saturday afternoon, nothing better to do, I was bored and had to study. Great excuse to check how rusted I was with ruby. Plus, we lost the source code for our previous bot (R.I.P.) at work.
Currently you can only do basic stuff with it:
free a machine. This might evolve to something more robust. Or not. This set of operations suffices, but who knows.
Adding a machine
machine add <name> [<ip> <owner>]
machine add rubedo 192.168.1.123 "Yen Sid"
machine list [all|reserved|free]
machine list is aliased to
machine reserve <name> [<name>, ...]
machine reserve is aliased to
machine free <name> [<name>, ...]
machine free is aliased to
machine set <name> ip|owner <value> machine set <name> meta <key> <value>
machine set albedo meta index 0.04
Getting Detailed Information
machine info <name>
Storage and Data Persistence
Yeah, through stdlib's
pstore. It's really ultra slow as it loads the whole database in memory prior to any transaction - A better bet would've been
gdbm, but I prefer
pstore's API. It should be fairly easy to change backends.
- Ruby 1.9.2 (Only because of
require_relative, so backporting is just a matter or replacing it with
That's it. Nothing more.