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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5174498a4489c5b45736dd5a928110e5aaf08273
4
- data.tar.gz: e867de87f5101112dfcee02856d39a326ca02bac
3
+ metadata.gz: cb2c793a1a3efd5dbb8e362ad678d4ac1820cb16
4
+ data.tar.gz: d0842f7cfa1b56d410a0619a4e6696990578bf34
5
5
  SHA512:
6
- metadata.gz: f1c4a27706f3f210d1f41e554e4a6527736b9069895ceb3abab53fefe1ddf868bd6916d6b713344d1a73a901014ce55419a6731d625bf0eb6100e75c520662ce
7
- data.tar.gz: 0f2a6650532331d0a131784067c0c31ab69779da6cef9091d341f37bef5448da130fa18ae0d6ac6c241453717dec6d6f1da6b41c50cba180570e4db9fa85b388
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.
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Rocket
3
3
  module Chat
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
6
6
  end
7
7
  end
@@ -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(:branch),
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rocket-chat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Bajohr