captainu-chinook 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chinook/capistrano/hipchat.rb +3 -6
- data/lib/chinook/version.rb +1 -1
- data/readme.markdown +1 -1
- 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: 53a09a71f61969ab51eb3faae0e20afe6a921d03
|
4
|
+
data.tar.gz: 365525cfbd713b6c5cc6842e06dd1b6e7d7f735c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9b0050eca9dc452f26cd6ee3ede18c7cdd4b8592cce2446d0830339a1e4f2159ffd14e186faacab5b153981998c7a72241fcaa1face723fc8459924c5d568a
|
7
|
+
data.tar.gz: 38d1f138faf5947f2a8886e846a3ca3b90d7adda74369e343ef64183ed5ce76cd541c7caee12a580ca768281efe9a2793496f7743a1d5624653124d0cc4a2f01
|
@@ -19,8 +19,7 @@ module Chinook::Capistrano
|
|
19
19
|
|
20
20
|
message = "#{git_username} started a deploy of #{project_name} to #{stage} at #{Time.now.strftime('%r %Z')}."
|
21
21
|
|
22
|
-
hipchat = ::HipChat::Client.new(fetch(:hipchat_token)
|
23
|
-
api_version: 'v2')
|
22
|
+
hipchat = ::HipChat::Client.new(fetch(:hipchat_token))
|
24
23
|
room = fetch(:hipchat_room)
|
25
24
|
username = fetch(:hipchat_username, 'Deployment')
|
26
25
|
hipchat[room].send(username, message, color: 'yellow')
|
@@ -38,8 +37,7 @@ module Chinook::Capistrano
|
|
38
37
|
|
39
38
|
message = "#{git_username}'s deploy of #{project_name} to #{stage} has been rolled back at #{Time.now.strftime('%r %Z')}."
|
40
39
|
|
41
|
-
hipchat = ::HipChat::Client.new(fetch(:hipchat_token)
|
42
|
-
api_version: 'v2')
|
40
|
+
hipchat = ::HipChat::Client.new(fetch(:hipchat_token))
|
43
41
|
room = fetch(:hipchat_room)
|
44
42
|
username = fetch(:hipchat_username, 'Deployment')
|
45
43
|
hipchat[room].send(username, message, color: 'red')
|
@@ -57,8 +55,7 @@ module Chinook::Capistrano
|
|
57
55
|
|
58
56
|
message = "#{git_username}'s deploy of #{project_name} to #{stage} finished at #{Time.now.strftime('%r %Z')}."
|
59
57
|
|
60
|
-
hipchat = ::HipChat::Client.new(fetch(:hipchat_token)
|
61
|
-
api_version: 'v2')
|
58
|
+
hipchat = ::HipChat::Client.new(fetch(:hipchat_token))
|
62
59
|
room = fetch(:hipchat_room)
|
63
60
|
username = fetch(:hipchat_username, 'Deployment')
|
64
61
|
hipchat[room].send(username, message, color: 'green')
|
data/lib/chinook/version.rb
CHANGED
data/readme.markdown
CHANGED
@@ -70,7 +70,7 @@ Notifies [HipChat](https://hipchat.com) when a deploy starts and/or stops. Uses
|
|
70
70
|
- `after 'deploy', 'chinook:hipchat_end'`
|
71
71
|
* Settings:
|
72
72
|
- `:hipchat_room`: the room where notifications will be posted.
|
73
|
-
- `:hipchat_token`: the API token
|
73
|
+
- `:hipchat_token`: the v1 API token that this task will post with.
|
74
74
|
- `:hipchat_username`: the username that will display as the poster of this notification; default is "Deployment."
|
75
75
|
- `:project_name`: the name of your project as it will show up in the notifications. *Optional; if not supplied, the value of `:application` will be used.*
|
76
76
|
|