Example Ruby Sinatra App
This code uses Sinatra to display a very simple web page within the Locker UI. Mostly, this is a demonstration of how to put the ruby process lifetime at the mercy of the lockerd service loader, and how to launch sinatra based on the launch requirements of lockerd.
There is a slight change to sinatra neccessary to have it return the data neededon successful launch; because of this the project currently uses Bundler to point at Sinatra HEAD on GitHub. If you are unfamiliar with Bundler, simply:
$ gem install bundler $ cd <path/to/HelloRuby> $ bundle install
You should also copy this checkout into the
Apps subdirectory so that Locker can find it.