Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A reservation API for deploy environments.
JavaScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
chap
config
lib
public
script
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
Procfile
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

Get

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

Response

Returns state of created reservation:

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

/reservations/show

Get

{ environment: 'beta' }

Response

{ status: 'available' }

or

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

/reservations/destroy

Get

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