capistrano-hipchat 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/capistrano/hipchat/version.rb +1 -1
- data/lib/capistrano/tasks/hipchat.cap +3 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e143138a180c0422803ace475011b94288a18b80
|
|
4
|
+
data.tar.gz: 7096f742c1774ec06f753ca32f18993acf35617a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea58b14f53a802a6ebed82b4180d48fd652d97cb12d7f3cc0b36a4420fbf863e8b65051e8ffd99df755c9997f3f4e3a843d0bba1fede067cd732a5a7b931b3df
|
|
7
|
+
data.tar.gz: 73b7e3229c26a74f0f3bd7a482a33ac356f720d2091109d3f89c77d29afd96578ab9824dc2a7370e57181ad70d0a6ad0d33d30f161b0029be9994b26b546997e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
namespace :hipchat do
|
|
2
2
|
|
|
3
3
|
task :notify_deploy_failed do
|
|
4
|
-
message = "#{local_user.strip} cancelled deployment of #{fetch(:application)} to #{fetch(:stage)}."
|
|
4
|
+
message = "#{fetch(:local_user, local_user).strip} cancelled deployment of #{fetch(:application)} to #{fetch(:stage)}."
|
|
5
5
|
|
|
6
6
|
fetch(:hipchat_room)
|
|
7
7
|
.send(fetch(:hipchat_bot_name, "Deployer"), message, message_notification: false, color: 'red')
|
|
@@ -10,7 +10,7 @@ namespace :hipchat do
|
|
|
10
10
|
task :notify_deploy_started do
|
|
11
11
|
commits = `git log --no-color --max-count=5 --pretty=format:' - %an: %s' --abbrev-commit --no-merges #{fetch(:previous_revision, "HEAD")}..#{fetch(:current_revision, "HEAD")}`
|
|
12
12
|
commits.gsub!("\n", "<br />")
|
|
13
|
-
message = "#{local_user.strip} is deploying #{fetch(:application)} to #{fetch(:stage)} <br />"
|
|
13
|
+
message = "#{fetch(:local_user, local_user).strip} is deploying #{fetch(:application)} to #{fetch(:stage)} <br />"
|
|
14
14
|
message << commits
|
|
15
15
|
|
|
16
16
|
fetch(:hipchat_room)
|
|
@@ -18,7 +18,7 @@ namespace :hipchat do
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
task :notify_deploy_finished do
|
|
21
|
-
message = "#{local_user.strip} finished deploying #{fetch(:application)} to #{fetch(:stage)}."
|
|
21
|
+
message = "#{fetch(:local_user, local_user).strip} finished deploying #{fetch(:application)} to #{fetch(:stage)}."
|
|
22
22
|
|
|
23
23
|
fetch(:hipchat_room)
|
|
24
24
|
.send(fetch(:hipchat_bot_name, "Deployer"), message, message_notification: false, color: 'green')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-hipchat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Restorando
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -108,3 +108,4 @@ specification_version: 4
|
|
|
108
108
|
summary: Notifies in a hipchat room about a new deployment showing the git log for
|
|
109
109
|
the latests commits included in the current deploy.
|
|
110
110
|
test_files: []
|
|
111
|
+
has_rdoc:
|