README.md 582 Bytes
Newer Older
Marco Metz's avatar
Marco Metz committed
1
# CodeclimateReporter
2

Daniel Molnar's avatar
Daniel Molnar committed
3
4
Pushes a notification to the Dashboard app to notify that a cronjob occured.

5
6
7
8
9
10

## Installation

Add this line to your application's Gemfile:

```ruby
Marco Metz's avatar
Marco Metz committed
11
gem "codeclimate_reporter", git: "https://@git.ikusei.de/scm/ik/codeclimate-reporter.git"
12
13
14
15
```

And then execute:

Daniel Molnar's avatar
Daniel Molnar committed
16
17
18
```
$ bundle
```
19

Marco Metz's avatar
Marco Metz committed
20
21
22
23
24
25
26
27
28
Copy template file to project:

```ruby
rake codeclimate:install
```

Add credetnials to file `.codeclimate_reporter`


29
30
31
## Usage

```ruby
Marco Metz's avatar
Marco Metz committed
32
CodeclimateReporter::Branch.new.refresh
33
34
```

Marco Metz's avatar
Marco Metz committed
35
36
37
38
39
40
or as a rake task

```ruby
rake codeclimate:refresh
```

41
42
43
44

## Develop
```ruby
rake console
Daniel Molnar's avatar
Daniel Molnar committed
45
```