Sha256: 52d64202be7f782736438333b8fab8a24d583211ef8d5504802c0cd3defcbec3

Contents?: true

Size: 1.58 KB

Versions: 6

Compression:

Stored size: 1.58 KB

Contents

## Gurney

Gurney is a small tool to extract dependencies from project files and report them to a web api.
It can either run locally or as a git post-receive hook in gitlab.

When run as a git hook, the project gets cloned on the git server and gurney then looks for a `gurney.yml` within the project files. 
If its present gurney looks at the pushed branches and analyses the ones specified in the config for dependencies. 
It then reports them to the web api also specified in the config.

#### Usage:
```
Usage: gurney [options]
        --api-url [API URL]
                                     Url for web api call, can have parameters for <project_id> and <branch>
                                     example: --api-url "http://example.com/project/<project_id>/branch/<branch>"
        --api-token [API TOKEN]
                                     Token to be send to the api in the X-AuthToken header
    -c, --config [CONFIG FILE]       Config file to use
    -h, --hook                       Run as a git post-receive hook
        --client-hook
                                     Run as a git pre-push hook
    -p, --project-id [PROJECT ID]    Specify project id for api
        --help
                                     Prints this help
```

#### Sample Config:
```yaml
project_id: 1
branches:
  - master
  - production
api_url: http://example.com/dep_reporter/project/<project_id>/branch/<branch>
api_token: 1234567890
```

##### Running as a global git hook
To run as a global git hook in your gitlab see https://docs.gitlab.com/ee/administration/custom_hooks.html#set-a-global-git-hook-for-all-repositories

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gurney_client-0.3.0 README.md
gurney_client-0.2.3 README.md
gurney_client-0.2.2 README.md
gurney_client-0.2.1 README.md
gurney_client-0.2.0 README.md
gurney_client-0.1.6 README.md