Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Hello, Locker! (from Ruby)
branch: master

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. 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.

Something went wrong with that request. Please try again.