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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ae58102ac93e65be42a6fca4731ceb36fac2bc3
4
- data.tar.gz: '089285b38481ef224978fea23db12e5361292f51'
3
+ metadata.gz: 1624d5ee8c4a1d5741d50e4a4bc478fc5b9cd403
4
+ data.tar.gz: c15668a708cd2e986911de00f05c05f7efeaedb1
5
5
  SHA512:
6
- metadata.gz: 0ac5511cdfb877a8ea891812df2311bb48104ad86a59a193b02c85e495e81a93fe3386cc92de72c3687ec1539c17678cddb0494b7a4f5217dbcaa01bf427e68b
7
- data.tar.gz: a0d50aff3232ca50b39a1a333464fee98c953b6a80c77e236a876dce9647386c3d0f07585f435545b58999bbbd574e691f7d611189175c15af828d3edc402075
6
+ metadata.gz: 95b19a53dae2bea265c1fa49aae7445bd59bd83d5998f8af0795135e47fd6487924321be85a7558fa1f979b909d181b108cf6e6ab8d83df51d2ead233ec1c35c
7
+ data.tar.gz: d6fdae9e84c5679edaabb3413b2372d5f2a353437e06903a477a3d0434445e4904f4d728902142598078d3c3f2ea520ff23ed057367a1dfecd16977402440e97
@@ -1,5 +1,8 @@
1
1
  require 'rake'
2
2
  require 'capistrano/sumo/version'
3
3
 
4
- load File.expand_path('../tasks/db.rake', __FILE__)
5
- load File.expand_path('../tasks/redirect.rake', __FILE__)
4
+ namespace :load do
5
+ task :defaults do
6
+ load 'capistrano/sumo/defaults.rb'
7
+ end
8
+ end
@@ -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__)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sumo
3
- VERSION = '0.3.0'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
@@ -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.3.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: