capistrano-sumo 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/sumo/version.rb +1 -1
- data/lib/capistrano/tasks/notifications.rake +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '00088bf80ff920288f5460ec2318cbaf8fad65f8'
|
4
|
+
data.tar.gz: a6c5573045e6d05ec0fce6dd8ad73e5e18e2c1bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ae08a893c6176adfdd4f4deacb7e125aac834f8ce6f02f2970e3cb3fe9446a2659a6dbdfd50ca85b261a7153dd4576829d59c15d4f154416b94f66c5440c753
|
7
|
+
data.tar.gz: f0596141b5bd0e4d6dbc1e410eefbb2a538ee38dc0d8d28eaaa5d11d9fe97a230a48fd82112b463f9578645b5b7c76f7fe08ef7ae3b5a688cfecf6e664f7ef63
|
@@ -2,15 +2,20 @@ namespace :sumo do
|
|
2
2
|
namespace :notifications do
|
3
3
|
desc 'Notify our webhooks on a deploy'
|
4
4
|
task :deploy do
|
5
|
+
# fetch the revision from the web-server
|
5
6
|
on roles(:web) do
|
7
|
+
set :revision, capture("cat #{current_path}/REVISION")
|
8
|
+
end
|
9
|
+
|
10
|
+
run_locally do
|
6
11
|
execute :curl,
|
7
12
|
'-sS',
|
8
13
|
"--data local_username=#{ENV["USER"]}",
|
9
14
|
"--data stage=#{fetch(:stage)}",
|
10
15
|
"--data repo=#{fetch(:repo_url)}",
|
11
|
-
"--data revision=#{
|
16
|
+
"--data revision=#{fetch(:revision)}",
|
12
17
|
'http://bot.sumo.sumoapp.be:3001/deploy/hook'
|
13
18
|
end
|
14
19
|
end
|
15
20
|
end
|
16
|
-
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sumo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.6.
|
98
|
+
rubygems_version: 2.6.14
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: SumoCoders specific task for Capistrano 3.x.
|