Introducing the RSF_services gem
The RSF_services gem provides a convenient way to run a Ruby Script File (RSF) related service as well as adhoc jobs. When a new RSFServices object is initialized it reads the XML registry to run the jobs which are present within the system/startup section.
installation
gem install rsf_services
Example
require 'rsf_services'
rs = RSFServices.new '/tmp/registry.xml'
file: /tmp/registry.xml
<?xml version='1.0' encoding='UTF-8'?>
<root>
<system>
<startup>
<r2>
<load>1</load>
</r2>
</startup>
<packages>
<r2>
<url>http://a0.jamesrobertson.eu/qbx/r/dandelion_a2/r2.rsf</url>
</r2>
</packages>
</system>
</root>
RSF package: http://a0.jamesrobertson.eu/qbx/r/dandelion_a2/r2.rsf
<package>
<job id='load'>
<script>
'params.inspect'
</script>
</job>
</package>
Resources
rsf_services gem