<commit_before># Salt API

This is a simple client gem for the Salt API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'salt-api'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install salt-api

## Usage

Get a list of minions including grains info.

```
require 'salt/api'

Salt::Api.configure do |config|
  config.hostname = "salt.example.com"
  config.username = "user1"
  config.password = "password"<commit_msg>added eauth param example to README<commit_after># Salt API

This is a simple client gem for the Salt API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'salt-api'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install salt-api

## Usage

Get a list of minions including grains info.

```
require 'salt/api'

Salt::Api.configure do |config|
  config.hostname = "salt.example.com"
  config.username = "user1"
  config.password = "password"
  config.eauth = "ldap"
{'fraction_non_alphanumeric': 0.10642570281124498, 'fraction_numerical': 0.002008032128514056, 'mean_word_length': 3.6588785046728973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7259797', 'n_tokens_mistral': 343, 'n_tokens_neox': 318, 'n_words': 118}