<commit_before># chef-brightbox

This recipe provides support for installing the BrightBox builds
of Ruby 1.9.3, Nginx and Passenger.

For more documentation on these builds, please see [the official brightbox documentation](http://blog.brightbox.co.uk/posts/next-generation-ruby-packages-for-ubuntu).

## Usage

Simple add `chef-brightbox` to your recipe, and then include one of the following
recipes:

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
  </tr>
  <tr>
    <td>brightbox::default</td>
    <td>Installs the ruby and nginx passenger recipes.</td>
  </tr>
  <tr>
    <td>brightbox::ruby</td>
    <td>Adds the repository, Installs The full Ruby 1.9 package from brightbox, sets it as the default then installs a sane server gemrc and adds bundler, rake and rubygems-bundler gems to bootstrap your environment.</td>
  </tr>
  <tr>
    <td>brightbox::nginx_passenger</td>
    <td>Requires the ruby recipe, will install passenger with 1.9.1 and nginx, setting up nginx to use passenger.</td>
  </tr>
</table>

## Definitions

We provide a `nginx_site` recipe that will enable / disable an nginx vhost.

Usage is similar to:

```ruby
# Use the configuration at /etc/nginx/sites-available/your-application.com<commit_msg>Wrap names in code blocks<commit_after># chef-brightbox

This recipe provides support for installing the BrightBox builds
of Ruby 1.9.3, Nginx and Passenger.

For more documentation on these builds, please see [the official brightbox documentation](http://blog.brightbox.co.uk/posts/next-generation-ruby-packages-for-ubuntu).

## Usage

Simple add `chef-brightbox` to your recipe, and then include one of the following
recipes:

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
  </tr>
  <tr>
    <td><code>brightbox::default</code></td>
    <td>Installs the ruby and nginx passenger recipes.</td>
  </tr>
  <tr>
    <td><code>brightbox::ruby</code></td>
    <td>Adds the repository, Installs The full Ruby 1.9 package from brightbox, sets it as the default then installs a sane server gemrc and adds bundler, rake and rubygems-bundler gems to bootstrap your environment.</td>
  </tr>
  <tr>
    <td><code>brightbox::nginx_passenger</code></td>
    <td>Requires the ruby recipe, will install passenger with 1.9.1 and nginx, setting up nginx to use passenger.</td>
  </tr>
</table>

## Definitions

We provide a `nginx_site` recipe that will enable / disable an nginx vhost.

Usage is similar to:

```ruby
# Use the configuration at /etc/nginx/sites-available/your-application.com
{'fraction_non_alphanumeric': 0.11366336633663367, 'fraction_numerical': 0.006336633663366337, 'mean_word_length': 4.052, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '2384080', 'n_tokens_mistral': 853, 'n_tokens_neox': 794, 'n_words': 281}