capistrano-graphite 1.0.1 → 1.0.2
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/graphite/version.rb +1 -1
- data/lib/capistrano/graphite.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed60203a50fea8d5872b9443a58ffb86283ee191
|
|
4
|
+
data.tar.gz: dfc07a01653e5511046934e6e0fde87613cadf04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c2faf586dda8861b94c5cae9812e343d12ff6ab34b8ded7960317b8dcf98324487c65055085f62c0c5b1344107fac3d18e7a56208d4a73686ac02f2e446a471
|
|
7
|
+
data.tar.gz: a917425e8095c7e9e7ff9a60b0f2c74532fb334e9ab845af96aea7578707db8a353f816c0fb699ecb9ff3f9134d1e5f760fcf038dc5b707956439056ff3b74e5
|
data/lib/capistrano/graphite.rb
CHANGED
|
@@ -25,7 +25,7 @@ end
|
|
|
25
25
|
|
|
26
26
|
namespace :deploy do
|
|
27
27
|
desc 'Post an event to graphite'
|
|
28
|
-
task :post_graphite, :action do |args|
|
|
28
|
+
task :post_graphite, :action do |_, args|
|
|
29
29
|
action = args[:action]
|
|
30
30
|
run_locally do
|
|
31
31
|
if fetch(:suppress_graphite_events).downcase == 'true'
|
|
@@ -40,11 +40,11 @@ namespace :deploy do
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# Set the order for these tasks
|
|
43
|
-
after 'deploy:
|
|
44
|
-
|
|
43
|
+
after 'deploy:finishing', 'post_graphite_deploy' do
|
|
44
|
+
invoke('deploy:post_graphite', 'deploy')
|
|
45
45
|
end
|
|
46
|
-
after 'deploy:
|
|
47
|
-
|
|
46
|
+
after 'deploy:finishing_rollback', 'post_graphite_rollback' do
|
|
47
|
+
invoke('deploy:post_graphite', 'rollback')
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
|