I'm writing a ruby gem that users can install and use the command line ruby tool to interact with the service. You can start and stop the service (it will spawn off a child process).
I've done a lot of research into the best things to use to write a network service, such as ØMQ/EventMachine and I get how to create a Ruby gem that will install a binary you can use in the command line, but I'm struggling to set out a good code structure.
My command line utility will take various arguments (I'll use Trollop) and the it will use various classes to do things, and use various other ruby gems.
I'm not sure where I should put my class files, and how to require them in my binary so the paths are correct.