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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a4f92aab2678482e8df49df24a77e81d9f3ba95
4
- data.tar.gz: 729024a100e9067f3a75f6819596c1223d0ae3bb
3
+ metadata.gz: '00088bf80ff920288f5460ec2318cbaf8fad65f8'
4
+ data.tar.gz: a6c5573045e6d05ec0fce6dd8ad73e5e18e2c1bc
5
5
  SHA512:
6
- metadata.gz: 83050e4927f5e1c358de0d696aaf7d0e5d192eb47fac803d02abbf15ca21204a26260872707190cbfe3d8996b3d8c8e57c02b3ba96d0564c576dbda016a4fa2c
7
- data.tar.gz: 68f7453dfe4f6be7da08cdb70c175dd32b1e1f116ab98216c1dfec0dbc018a3536e97201c9df0e359781b547b1ed6612d34865e72538f7bcbf605243959ee233
6
+ metadata.gz: 5ae08a893c6176adfdd4f4deacb7e125aac834f8ce6f02f2970e3cb3fe9446a2659a6dbdfd50ca85b261a7153dd4576829d59c15d4f154416b94f66c5440c753
7
+ data.tar.gz: f0596141b5bd0e4d6dbc1e410eefbb2a538ee38dc0d8d28eaaa5d11d9fe97a230a48fd82112b463f9578645b5b7c76f7fe08ef7ae3b5a688cfecf6e664f7ef63
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sumo
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
@@ -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=#{capture("cat #{current_path}/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.2.0
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: 2017-08-21 00:00:00.000000000 Z
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.11
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.