Skip to content
A reservation API for deploy environments.
JavaScript Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
lib
public
script
spec
.gitignore
LICENSE
README.md
Rakefile
config.ru
maitre_d.gemspec

README.md

Maitre D

A reservation API for deploy environments.

Setup

git clone git@github.com:winton/maitre_d.git
rake gems:install

Now your environment is ready to run passenger start on the application (or whatever you use to run Sinatra apps).

/reservations/create

Post

{ seconds: 3600, environment: 'beta', user: 'me' }

Response

Returns state of created reservation:

{ status: 'reserved', expires: 1316133837, user: 'me' }

/reservations/show

Post

{ environment: 'beta' }

Response

{ status: 'available' }

or

{ status: 'reserved', expires: 1316133837, user: 'me' }

/reservations/destroy

Post

{ environment: 'beta' }

Response

Returns state of reservation when you destroyed it:

{ status: 'available' }

or

{ status: 'reserved', expires: 1316133837, user: 'me' }
Something went wrong with that request. Please try again.