# lita-locker [![Build Status](https://img.shields.io/travis/esigler/lita-locker/master.svg)](https://travis-ci.org/esigler/lita-locker) [![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://tldrlegal.com/license/mit-license) [![RubyGems :: RMuh Gem Version](http://img.shields.io/gem/v/lita-locker.svg)](https://rubygems.org/gems/lita-locker) [![Coveralls Coverage](https://img.shields.io/coveralls/esigler/lita-locker/master.svg)](https://coveralls.io/r/esigler/lita-locker) [![Code Climate](https://img.shields.io/codeclimate/github/esigler/lita-locker.svg)](https://codeclimate.com/github/esigler/lita-locker) [![Gemnasium](https://img.shields.io/gemnasium/esigler/lita-locker.svg)](https://gemnasium.com/esigler/lita-locker) Locking, unlocking shared resource handler for [lita.io](https://github.com/jimmycuadra/lita). ## Installation Add lita-locker to your Lita instance's Gemfile: ``` ruby gem "lita-locker" ``` ## Configuration None ## Usage lita-locker allows you to define resources (such as a server, or Git repo), and labels (such as "production"). Labels can have multiple resources, and resources can be referenced by multiple labels. A label can only be locked if all of the resources it uses are available. ### Examples ``` lock web - Make something unavailable to others unlock web - Make something available to others steal web - Make yourself the owner of something locked by someone else locker status web - Show the current state of web ``` ### Locking, Unlocking, State ``` lock