<commit_before># lita-consul

[![Build Status](https://travis-ci.org/dpires/lita-consul.png?branch=master)](https://travis-ci.org/dpires/lita-consul)
[![Coverage Status](https://coveralls.io/repos/dpires/lita-consul/badge.png)](https://coveralls.io/r/dpires/lita-consul)

***lita-consul*** is a handler for [Lita](https://github.com/litaio/lita) for interacting with [Consul](https://github.com/hashicorp/consul).

## Installation

Add lita-consul to your Lita instance's Gemfile:

``` ruby
gem "lita-consul"
```

## Configuration

### Optional attributes

* `consul_host` (String) - Consul host. Default: `localhost`.
* `consul_port` (String) - Consul port. Default: `8500`.


## Usage

```
[You]: lita consul get foo <commit_msg>Adding coveralls badge to README<commit_after># lita-consul

[![Build Status](https://travis-ci.org/dpires/lita-consul.png?branch=master)](https://travis-ci.org/dpires/lita-consul)
[![Coverage Status](https://coveralls.io/repos/dpires/lita-consul/badge.svg?branch=master&service=github)](https://coveralls.io/github/dpires/lita-consul?branch=master)

**lita-consul** is a handler for [Lita](https://github.com/litaio/lita) for interacting with [Consul](https://github.com/hashicorp/consul).

## Installation

Add lita-consul to your Lita instance's Gemfile:

``` ruby
gem "lita-consul"
```

## Configuration

### Optional attributes

* `consul_host` (String) - Consul host. Default: `localhost`.
* `consul_port` (String) - Consul port. Default: `8500`.


## Usage

```
[You]: lita consul get foo 
{'fraction_non_alphanumeric': 0.18205631958087753, 'fraction_numerical': 0.005239030779305829, 'mean_word_length': 5.136546184738956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '548016', 'n_tokens_mistral': 586, 'n_tokens_neox': 559, 'n_words': 100}