Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
Gemfile
README.md
helloruby.app
helloruby.rb
sinatra-locker.rb

README.md

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. Sinatra 1.3.0 should include the neccessary changes.

If you are unfamiliar with Bundler, simply:

$ gem install bundler
$ cd <path/to/HelloRuby>
$ bundle install
Something went wrong with that request. Please try again.