capistrano-sumo 0.3.0 → 1.0.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.rb +5 -2
- data/lib/capistrano/sumo/defaults.rb +9 -0
- data/lib/capistrano/sumo/version.rb +1 -1
- data/lib/capistrano/tasks/notifications.rake +16 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1624d5ee8c4a1d5741d50e4a4bc478fc5b9cd403
|
4
|
+
data.tar.gz: c15668a708cd2e986911de00f05c05f7efeaedb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95b19a53dae2bea265c1fa49aae7445bd59bd83d5998f8af0795135e47fd6487924321be85a7558fa1f979b909d181b108cf6e6ab8d83df51d2ead233ec1c35c
|
7
|
+
data.tar.gz: d6fdae9e84c5679edaabb3413b2372d5f2a353437e06903a477a3d0434445e4904f4d728902142598078d3c3f2ea520ff23ed057367a1dfecd16977402440e97
|
data/lib/capistrano/sumo.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Make sure the composer executable is installed
|
2
|
+
namespace :deploy do
|
3
|
+
after :finished, "sumo:notifications:deploy"
|
4
|
+
end
|
5
|
+
|
6
|
+
# Load the tasks
|
7
|
+
load File.expand_path('../../tasks/db.rake', __FILE__)
|
8
|
+
load File.expand_path('../../tasks/notifications.rake', __FILE__)
|
9
|
+
load File.expand_path('../../tasks/redirect.rake', __FILE__)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
namespace :sumo do
|
2
|
+
namespace :notifications do
|
3
|
+
desc "Notify our webhooks on a deploy"
|
4
|
+
task :deploy do
|
5
|
+
on roles(:web) do
|
6
|
+
execute :curl,
|
7
|
+
"-sS",
|
8
|
+
"--data local_username=#{ENV["USER"]}",
|
9
|
+
"--data stage=#{fetch(:stage)}",
|
10
|
+
"--data repo=#{fetch(:repo_url)}",
|
11
|
+
"--data revision=#{capture("cat #{current_path}/REVISION")}",
|
12
|
+
"http://bot.sumo.sumoapp.be:3001/deploy/hook"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sumo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
@@ -69,8 +69,10 @@ files:
|
|
69
69
|
- Rakefile
|
70
70
|
- capistrano-sumo.gemspec
|
71
71
|
- lib/capistrano/sumo.rb
|
72
|
+
- lib/capistrano/sumo/defaults.rb
|
72
73
|
- lib/capistrano/sumo/version.rb
|
73
74
|
- lib/capistrano/tasks/db.rake
|
75
|
+
- lib/capistrano/tasks/notifications.rake
|
74
76
|
- lib/capistrano/tasks/redirect.rake
|
75
77
|
homepage: https://github.com/tijsverkoyen/capistrano-sumo
|
76
78
|
licenses:
|