<commit_before># DeployHooks

This tiny gem allows to define tasks which will start before and/or after deployment app to heroku.

## Installation

Add this line to your application's Gemfile:

    gem 'deploy_hooks', github: 'kenjione/deploy_hooks'

And then execute:

    $ bundle

## Usage

At first u should have rake or thor tasks that will be used as hooks.
You need to define your hooks in initializer like that:

```ruby
DeployHooks.config do |config|
  config.environments = { stage: 'your-appname-at-stage', production: 'your-appname-at-production' }
  config.before_deploy = { rake: %w[ your_rake_task ], thor: %w[ your_thor_task ] }<commit_msg>README.md<commit_after># DeployHooks

This tiny gem allows to define tasks which will start before and/or after deployment app to heroku.

## Installation

Add this line to your application's Gemfile:

    gem 'deploy_hooks', github: 'kenjione/deploy_hooks'

And then execute:

    $ bundle

## Usage

At first u should have rake or thor tasks that will be used as hooks.
You need to define your hooks in initializer `initializers/deploy_hooks.rb` like that:

```ruby
DeployHooks.config do |config|
  config.environments = { stage: 'your-appname-at-stage', production: 'your-appname-at-production' }
  config.before_deploy = { rake: %w[ your_rake_task ], thor: %w[ your_thor_task ] }
{'fraction_non_alphanumeric': 0.09185959671396565, 'fraction_numerical': 0.0, 'mean_word_length': 4.425101214574899, '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': '4636083', 'n_tokens_mistral': 439, 'n_tokens_neox': 416, 'n_words': 155}