<commit_before># Caphook

Caphook is a simple Sinatra app to execute Capistrano tasks via HTTP calls.

## Installation ##

    $ git clone <EMAIL>:konsti/caphook.git
    
 * Create `config/caphook.yml` according to your needs. Look at `config/caphook.yml.sample` for help.
 * Install Riak with localhost access
 
    $ bundle install

## Dependencies ##

 * Ruby (> 1.9.3)
 * Riak (> 1.1.2)

## Server ##
    $ thin start -R config.ru -d -p 4567
    
You can also create a Profile and use foreman (included in the Gemfile)  
  
## Use Caphook ##
Now you're able to deploy your project with HTTP calls

    GET /cap/{project_name}?command={cap_command_included_in_config}
    
Optional Params:
    user={user_string}
    
You can also view your log files with
    
    GET /logs

## Credits ##
 * <NAME> ([https://github.com/outoftime/clickistrano](https://github.com/outoftime/clickistrano)) for the code to run a shell command
 
## License ##
Caphook is released under the MIT license:   
  [http://www.opensource.org/licenses/MIT](http://www.opensource.org/licenses/MIT)<commit_msg>Format README<commit_after># Caphook

Caphook is a simple Sinatra app to execute Capistrano tasks via HTTP calls.

## Installation ##

    $ git clone git@github.com:konsti/caphook.git
    
 * Create `config/caphook.yml` according to your needs. Look at `config/caphook.yml.sample` for help.
 * Install Riak with localhost access
 
    $ bundle install

## Dependencies ##

 * Ruby (> 1.9.3)
 * Riak (> 1.1.2)

## Server ##
    $ thin start -R config.ru -d -p 4567
    
You can also create a Profile and use foreman (included in the Gemfile)  
  
## Use Caphook ##
Now you're able to deploy your project with HTTP calls

    GET /cap/{project_name}?command={cap_command_included_in_config}
    
Optional Param:   

    user={user_string}
    
You can also view your log files with
    
    GET /logs

## Credits ##
 * <NAME> ([https://github.com/outoftime/clickistrano](https://github.com/outoftime/clickistrano)) for the code to run a shell command
 
## License ##
Caphook is released under the MIT license:   
  [http://www.opensource.org/licenses/MIT](http://www.opensource.org/licenses/MIT)
{'fraction_non_alphanumeric': 0.11202938475665748, 'fraction_numerical': 0.009182736455463728, 'mean_word_length': 3.2978303747534516, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 1, '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': '296390', 'n_tokens_mistral': 744, 'n_tokens_neox': 680, 'n_words': 220}