<commit_before># pertino-cookbook

This cookbook exposes a resource to set up a connection to the [Pertino](http://pertino.com/) network.

## Tested

- Ubuntu 14.04
- Ubuntu 12.04
- CentOS 6.6

- Chef 12.0.3

See TESTING.md for more.

## Usage

Add `depends 'pertino'` to your application cookbook's `metadata.rb`.

In a recipe, create a `pertino_client` resource and provide it with authentication
details:

```ruby
# UserPass Auth
pertino_client 'default' do
  auth_mode 'userpass'
  username 'my_pertino_username'
  password '<PASSWORD>'
end

# Device Auth
pertino_client 'default' do
  auth_mode 'api_key'
  api_key 'key_source' # could be from a databag, attribute, etc.
end
```

Note: The resource name `default` isn't used.

See `test/fixtures/cookbooks` for some more examples.

Recommended: Pair with a [`logrotate_app` resource](https://github.com/stevendanna/logrotate#usage)
to ensure that the log files do not grow beyond manageable.

## License and Authors

Author:: <NAME> (<<EMAIL>>)

See LICENSE for details.
<commit_msg>README updates [ci skip]<commit_after># pertino-cookbook

[![Cookbook](http://img.shields.io/cookbook/v/pertino.svg)](https://supermarket.chef.io/cookbooks/pertino)
[![Circle CI](https://circleci.com/gh/miketheman/pertino-cookbook.svg?style=shield)](https://circleci.com/gh/miketheman/pertino-cookbook)
[![Coverage Status](https://coveralls.io/repos/miketheman/pertino-cookbook/badge.svg?branch=master)](https://coveralls.io/r/miketheman/pertino-cookbook?branch=master)
[![GitHub issues](https://img.shields.io/github/issues/miketheman/pertino-cookbook.svg)](https://github.com/miketheman/pertino-cookbook/issues)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miketheman/pertino-cookbook/master/LICENSE)

This cookbook exposes a resource to set up a connection to the [Pertino](http://pertino.com/) network.

## Tested

- Ubuntu 14.04
- Ubuntu 12.04
- CentOS 6.6

- Chef 12.0.3

See [TESTING.md](TESTING.md) for more.

## Usage

Add `depends 'pertino'` to your application cookbook's `metadata.rb`.

In a recipe, create a `pertino_client` resource and provide it with authentication
details:

```ruby
# UserPass Auth
pertino_client 'default' do
  auth_mode 'userpass'
  username 'my_pertino_username'
  password '<PASSWORD>'
end

# Device Auth
pertino_client 'default' do
  auth_mode 'api_key'
  api_key 'key_source' # could be from a databag, attribute, etc.
end
```

Note: The resource name `default` isn't used.

See [`test/fixtures/cookbooks`](test/fixtures/cookbooks) for some more examples.

Recommended: Pair with a [`logrotate_app` resource](https://github.com/stevendanna/logrotate#usage)
to ensure that the log files do not grow beyond manageable.

## License and Authors

Author:: <NAME> (<<EMAIL>>)

See LICENSE for details.

{'fraction_non_alphanumeric': 0.13126323218066338, 'fraction_numerical': 0.009880028228652082, 'mean_word_length': 4.968421052631579, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 11, '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': '7160657', 'n_tokens_mistral': 1022, 'n_tokens_neox': 954, 'n_words': 254}