<commit_before>aptly Cookbook
=====

This cookbook installs and configures aptly (http://www.aptly.info)

Requirements
------------

### Platform

* Ubuntu 12.04
* Ubuntu 14.04

Attributes
----------

* `default['aptly']['uri'] = 'http://repo.aptly.info/'`
* `default['aptly']['dist'] = "squeeze"`
* `default['aptly']['components'] = ['main']`
* `default['aptly']['keyserver'] = 'keys.gnupg.net'`
* `default['aptly']['key'] = '2A194991'`
* `default['aptly']['user'] = 'aptly'`
* `default['aptly']['group'] = 'aptly'`
* `default['aptly']['rootdir'] = "/opt/aptly"`
* `default['aptly']['downloadconcurrency'] = 4`
* `default['aptly']['architectures'] = []`
* `default['aptly']['dependencyfollowsuggests'] = false`
* `default['aptly']['dependencyfollowrecommends'] = false`
* `default['aptly']['dependencyfollowallvariants'] = false`
* `default['aptly']['dependencyfollowsource'] = false`
* `default['aptly']['gpgdisablesign'] = false`
* `default['aptly']['gpgdisableverify'] = false`
* `default['aptly']['downloadsourcepackages'] = false`
* `default['aptly']['ppadistributorid'] = ""`
* `default['aptly']['ppacodename'] = ""`

Recipes
-------
### `default`

Installs aptly

Usage
-----
### add to run_list

### include recipe
include_recipe "aptly"

Resources
---------

```
aptly_repo "myrepo" do
  action :create
  comment "A repository of packages"
  component "main"
  distribution "Ubuntu"
end
```

```
aptly_repo "myrepo" do
  action :create
end
```

```
aptly_repo "myrepo" do
  action :drop
end
```

```
aptly_repo "myrepo" do
  action :add
  file "/path/to/package-1.0.1.deb"
end
```

```
aptly_repo "myrepo" do
  action :add
  directory "/path/to/packages"
end
```

```
aptly_repo "myrepo" do
  action :remove
  file "/path/to/package-1.0.1.deb"
end
```

```
aptly_snapshot "pulltest" do
  action :create
  from "myrepo"
  type "repo"
  empty false
end
```

```
aptly_snapshot "pulltest" do
  action :drop
end
```

```
aptly_snapshot "merged-snapshot" do
  action :merge
  merge_source1 "pullrepo1"
  merge_source2 "pullrepo2"
end
```

```
aptly_snapshot "merged-snapshot" do
  action :verify
end
```

```
aptly_snapshot "pulledpork" do
  action :pull
  deps false
  remove false
  package "openjdk-6-jre-headless_6b30-1.13.1-1ubuntu2~0.12.04.1_amd64"
  resource "pullrepo1"
  source "pullrepo2"
end
```<commit_msg>use generic name as example<commit_after>aptly Cookbook
=====

This cookbook installs and configures aptly (http://www.aptly.info)

Requirements
------------

### Platform

* Ubuntu 12.04
* Ubuntu 14.04

Attributes
----------

* `default['aptly']['uri'] = 'http://repo.aptly.info/'`
* `default['aptly']['dist'] = "squeeze"`
* `default['aptly']['components'] = ['main']`
* `default['aptly']['keyserver'] = 'keys.gnupg.net'`
* `default['aptly']['key'] = '2A194991'`
* `default['aptly']['user'] = 'aptly'`
* `default['aptly']['group'] = 'aptly'`
* `default['aptly']['rootdir'] = "/opt/aptly"`
* `default['aptly']['downloadconcurrency'] = 4`
* `default['aptly']['architectures'] = []`
* `default['aptly']['dependencyfollowsuggests'] = false`
* `default['aptly']['dependencyfollowrecommends'] = false`
* `default['aptly']['dependencyfollowallvariants'] = false`
* `default['aptly']['dependencyfollowsource'] = false`
* `default['aptly']['gpgdisablesign'] = false`
* `default['aptly']['gpgdisableverify'] = false`
* `default['aptly']['downloadsourcepackages'] = false`
* `default['aptly']['ppadistributorid'] = ""`
* `default['aptly']['ppacodename'] = ""`

Recipes
-------
### `default`

Installs aptly

Usage
-----
### add to run_list

### include recipe
include_recipe "aptly"

Resources
---------

```
aptly_repo "myrepo" do
  action :create
  comment "A repository of packages"
  component "main"
  distribution "Ubuntu"
end
```

```
aptly_repo "myrepo" do
  action :create
end
```

```
aptly_repo "myrepo" do
  action :drop
end
```

```
aptly_repo "myrepo" do
  action :add
  file "/path/to/package-1.0.1.deb"
end
```

```
aptly_repo "myrepo" do
  action :add
  directory "/path/to/packages"
end
```

```
aptly_repo "myrepo" do
  action :remove
  file "/path/to/package-1.0.1.deb"
end
```

```
aptly_snapshot "pulltest" do
  action :create
  from "myrepo"
  type "repo"
  empty false
end
```

```
aptly_snapshot "pulltest" do
  action :drop
end
```

```
aptly_snapshot "merged-snapshot" do
  action :merge
  merge_source1 "pullrepo1"
  merge_source2 "pullrepo2"
end
```

```
aptly_snapshot "merged-snapshot" do
  action :verify
end
```

```
aptly_snapshot "pulledpork" do
  action :pull
  deps false
  remove false
  package "package-1.0.1"
  resource "pullrepo1"
  source "pullrepo2"
end
```
{'fraction_non_alphanumeric': 0.2128305158214131, 'fraction_numerical': 0.01668833983528392, 'mean_word_length': 4.754364089775561, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6022819', 'n_tokens_mistral': 1787, 'n_tokens_neox': 1689, 'n_words': 334}