Commit 77a412f4 authored by Marco Metz's avatar Marco Metz
Browse files

Doku angepasst

Und Rake Task zum einfachen starten hinzugefügt
parent c8ed70ec
......@@ -17,12 +17,27 @@ And then execute:
$ bundle
```
Copy template file to project:
```ruby
rake codeclimate:install
```
Add credetnials to file `.codeclimate_reporter`
## Usage
```ruby
CodeclimateReporter::Branch.new.refresh
```
or as a rake task
```ruby
rake codeclimate:refresh
```
## Develop
```ruby
......
namespace :install do
namespace :codeclimate do
desc "Install config file"
task :config do
task :install do
source = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "codeclimate_reporter.yml")
target = File.join(Rails.root, ".codeclimate_reporter")
FileUtils.cp source, target
end
task :refresh do
CodeclimateReporter::Branch.new.refresh
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment