<commit_before># lita-salt [![Gem Version](https://badge.fury.io/rb/lita-salt.svg)](http://badge.fury.io/rb/lita-salt)

**lita-salt** is an adapter for [Lita](https://www.lita.io) that gives your bot the power to interact with your saltstack installation via salt-api.

## Installation

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

``` ruby
gem "lita-salt"
```

## Configuration

### Required

* `url` (String) – The location of the running salt-api service.
* `username` (String) – The username used to authenticate with salt-api.
* `password` (String) – The password used to authenticate with salt-api.

### Optional

* `returner` (String) – A [Saltstack returner](http://docs.saltstack.com/en/2014.7/ref/returners/all/) you'd like to use. (uses default if unset)

### Example

``` ruby
Lita.configure do |config|
    config.handlers.salt.url = "https://api.example.com"
    config.handlers.salt.username = ENV["SALT_USERNAME"]
    config.handlers.salt.password = ENV["<PASSWORD>"]
end
```

## Usage

Commands are called in the with the `salt` prefix what can be optionally with the `s` abbreviation.

```shell
lita: salt minion service.restart nginx
@lita s minion schedule.run_job apt
lita: salt pillar get "some_key"
```

### Example

`lita: salt up` executes the `manage.up` runner and returns a list of up minions.

## License

[MIT](http://opensource.org/licenses/MIT)
<commit_msg>rewording<commit_after># lita-salt [![Gem Version](https://badge.fury.io/rb/lita-salt.svg)](http://badge.fury.io/rb/lita-salt)

**lita-salt** is an adapter for [Lita](https://www.lita.io) that allows your bot to interact with your saltstack installation via salt-api.

## Installation

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

``` ruby
gem "lita-salt"
```

## Configuration

### Required

* `url` (String) – The location of the running salt-api service.
* `username` (String) – The username used to authenticate with salt-api.
* `password` (String) – The password used to authenticate with salt-api.

### Optional

* `returner` (String) – A [Saltstack returner](http://docs.saltstack.com/en/2014.7/ref/returners/all/) you'd like to use. (uses default if unset)

### Example

``` ruby
Lita.configure do |config|
    config.handlers.salt.url = "https://api.example.com"
    config.handlers.salt.username = ENV["SALT_USERNAME"]
    config.handlers.salt.password = ENV["<PASSWORD>"]
end
```

## Usage

Commands are called in the with the `salt` prefix what can be optionally with the `s` abbreviation.

```shell
lita: salt minion service.restart nginx
@lita s minion schedule.run_job apt
lita: salt pillar get "some_key"
```

### Example

`lita: salt up` executes the `manage.up` runner and returns a list of up minions.

## License

[MIT](http://opensource.org/licenses/MIT)

{'fraction_non_alphanumeric': 0.14579574160952724, 'fraction_numerical': 0.003608805485384338, 'mean_word_length': 4.30019120458891, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '1232612', 'n_tokens_mistral': 997, 'n_tokens_neox': 925, 'n_words': 288}