capistrano-rocket-chat 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -0
- data/lib/capistrano/rocket_chat/version.rb +1 -1
- data/lib/capistrano/tasks/rocket_chat.cap +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb2c793a1a3efd5dbb8e362ad678d4ac1820cb16
|
4
|
+
data.tar.gz: d0842f7cfa1b56d410a0619a4e6696990578bf34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb2ba0c3eb6df71a7e4e08c05e5fb58397ccf14321ac931610053ebc7e33001b846a3067aabba93c70d5924a2897bf2fc4611766396f3078ee3014d3a15e293
|
7
|
+
data.tar.gz: 862429a14ca3c496555452a8fa5b9a6f0f9d9ea0fdd29675dbc5185a113acdd6bdedbfacc6c7047c21c8787d255b4af4450949573d184f9c6e04f5a315ea9643
|
data/README.md
CHANGED
@@ -43,6 +43,41 @@ Additionally you will need a parser script for your rocket.chat for the incoming
|
|
43
43
|
If you don't want to code one yourself, here is a working script with basic functionality for you:
|
44
44
|
https://github.com/cbajohr/capistrano-rocket-chat/wiki/rocket.chat-parser-script-example
|
45
45
|
|
46
|
+
|
47
|
+
## Post examples
|
48
|
+
|
49
|
+
Example JSON that is pushed by the gem.
|
50
|
+
|
51
|
+
Possible 'event -> hook' states are:
|
52
|
+
* starting
|
53
|
+
* failed
|
54
|
+
* finished
|
55
|
+
|
56
|
+
```JSON
|
57
|
+
{
|
58
|
+
"event": {
|
59
|
+
"hook": "failed",
|
60
|
+
"text": "failed deployment to 'www.server.de' on branch 'master' to stage 'production'"
|
61
|
+
},
|
62
|
+
"attributes": {
|
63
|
+
"rocket_chat_url": "http://mychat.com/mytoken",
|
64
|
+
"application": "my_application",
|
65
|
+
"branch": "master",
|
66
|
+
"repo_url": "git@my_git.com/repo/repo",
|
67
|
+
"stage": "production",
|
68
|
+
"deploy_to": "/var/www/my_vhost_name",
|
69
|
+
"rails_env": "production",
|
70
|
+
"scm": "git",
|
71
|
+
"log_level": "debug",
|
72
|
+
"local_user": "johndoe",
|
73
|
+
"server": {
|
74
|
+
"name": "my_server.com",
|
75
|
+
"user": "my_ssh_user"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
```
|
80
|
+
|
46
81
|
## Development
|
47
82
|
|
48
83
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -28,7 +28,7 @@ def get_config_vars()
|
|
28
28
|
rocket_chat_url: fetch(:rocket_chat_webhook_url),
|
29
29
|
application: fetch(:application),
|
30
30
|
branch: fetch(:branch),
|
31
|
-
repo_url: fetch(:
|
31
|
+
repo_url: fetch(:repo_url),
|
32
32
|
stage: fetch(:stage),
|
33
33
|
deploy_to: fetch(:deploy_to),
|
34
34
|
rails_env: fetch(:rails_env),
|
@@ -37,9 +37,7 @@ def get_config_vars()
|
|
37
37
|
local_user: @task.local_user,
|
38
38
|
server: {
|
39
39
|
name: @host.hostname,
|
40
|
-
user: @host.user
|
41
|
-
roles: @host.roles,
|
42
|
-
ssh_options: @host.ssh_options
|
40
|
+
user: @host.user
|
43
41
|
}
|
44
42
|
}
|
45
43
|
end
|