Skip to content

Commit f351d25

Browse files
authored
Merge pull request #38 from Clivern/fix/enhance-controllers
Enhance controller
2 parents a546045 + 5a7418d commit f351d25

File tree

7 files changed

+324
-316
lines changed

7 files changed

+324
-316
lines changed

Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ pkgs = ./...
55

66
help: Makefile
77
@echo
8-
@echo " Choose a command run in Beaver:"
8+
@echo " Choose a command run in Rabbit:"
99
@echo
1010
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
1111
@echo
1212

1313

1414
## install_revive: Install revive for linting.
1515
install_revive:
16-
@echo ">> Install revive"
16+
@echo ">> ============= Install Revive ============= <<"
1717
$(GO) get github.com/mgechev/revive
1818

1919

2020
## style: Check code style.
2121
style:
22-
@echo ">> checking code style"
22+
@echo ">> ============= Checking Code Style ============= <<"
2323
@fmtRes=$$($(GOFMT) -d $$(find . -path ./vendor -prune -o -name '*.go' -print)); \
2424
if [ -n "$${fmtRes}" ]; then \
2525
echo "gofmt checking failed!"; echo "$${fmtRes}"; echo; \
@@ -30,7 +30,7 @@ style:
3030

3131
## check_license: Check if license header on all files.
3232
check_license:
33-
@echo ">> checking license header"
33+
@echo ">> ============= Checking License Header ============= <<"
3434
@licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './vendor/*') ; do \
3535
awk 'NR<=3' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \
3636
done); \
@@ -42,36 +42,37 @@ check_license:
4242

4343
## test_short: Run test cases with short flag.
4444
test_short:
45-
@echo ">> running short tests"
45+
@echo ">> ============= Running Short Tests ============= <<"
4646
$(GO) test -short $(pkgs)
4747

4848

4949
## test: Run test cases.
5050
test:
51-
@echo ">> running all tests"
51+
@echo ">> ============= Running All Tests ============= <<"
5252
$(GO) test -race -cover $(pkgs)
5353

5454

5555
## lint: Lint the code.
5656
lint:
57-
@echo ">> Lint all files"
57+
@echo ">> ============= Lint All Files ============= <<"
5858
revive -config config.toml -exclude vendor/... -formatter friendly ./...
5959

6060

6161
## format: Format the code.
6262
format:
63-
@echo ">> formatting code"
63+
@echo ">> ============= Formatting Code ============= <<"
6464
$(GO) fmt $(pkgs)
6565

6666

6767
## vet: Examines source code and reports suspicious constructs.
6868
vet:
69-
@echo ">> vetting code"
69+
@echo ">> ============= Vetting Code ============= <<"
7070
$(GO) vet $(pkgs)
7171

7272

7373
## coverage: Create HTML coverage report
7474
coverage:
75+
@echo ">> ============= Coverage ============= <<"
7576
rm -f coverage.html cover.out
7677
$(GO) test -coverprofile=cover.out $(pkgs)
7778
go tool cover -html=cover.out -o coverage.html

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p align="center">
66
<a href="https://godoc.org/github.com/clivern/rabbit"><img src="https://godoc.org/github.com/clivern/rabbit?status.svg"></a>
77
<a href="https://travis-ci.org/Clivern/Rabbit"><img src="https://travis-ci.org/Clivern/Rabbit.svg?branch=master"></a>
8-
<a href="/Clivern/Rabbit/releases"><img src="https://img.shields.io/badge/Version-0.1.1-red.svg"></a>
8+
<a href="/Clivern/Rabbit/releases"><img src="https://img.shields.io/badge/Version-0.1.2-red.svg"></a>
99
<a href="https://goreportcard.com/report/github.com/Clivern/Rabbit"><img src="https://goreportcard.com/badge/github.com/Clivern/Rabbit"></a>
1010
<a href="https://github.com/Clivern/Rabbit/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg"></a>
1111
</p>
@@ -152,7 +152,7 @@ Make sure you have `git`, `golang 1.12` and `goreleaser` installed, and make gor
152152

153153
```bash
154154
# To download the latest goreleaser binary for linux (https://github.com/goreleaser/goreleaser/releases)
155-
$ curl -sL https://github.com/goreleaser/goreleaser/releases/download/v0.108.0/goreleaser_Linux_x86_64.tar.gz | tar xz
155+
$ curl -sL https://github.com/goreleaser/goreleaser/releases/download/v0.109.0/goreleaser_Linux_x86_64.tar.gz | tar xz
156156
```
157157

158158
Also make sure you are able to clone all your repositories in a non-interactive way. Just configure ssh-key and add the remote VCS to your known hosts.

deployments/docker-compose/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN mkdir -p /app/var/releases
99

1010
WORKDIR /app
1111

12-
RUN curl -sL https://github.com/Clivern/Rabbit/releases/download/0.1.1/Rabbit_0.1.1_Linux_x86_64.tar.gz | tar xz
12+
RUN curl -sL https://github.com/Clivern/Rabbit/releases/download/0.1.2/Rabbit_0.1.2_Linux_x86_64.tar.gz | tar xz
1313
RUN curl -sL https://github.com/goreleaser/goreleaser/releases/download/v0.109.0/goreleaser_Linux_x86_64.tar.gz | tar xz
1414

1515
RUN mv Rabbit rabbit

deployments/docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
- 'redis_data:/data'
77
restart: always
88
web:
9-
image: "clivern_rabbit:0.1.1"
9+
image: "clivern_rabbit:0.1.2"
1010
build: .
1111
command: './rabbit --config /app/configs/config.docker.yml'
1212
ports:

0 commit comments

Comments
 (0)