capistrano-graphite 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/capistrano/graphite/version.rb +1 -1
- data/lib/capistrano/graphite.rb +11 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a94a89d4e982b560cacd16c846944e03e04662
|
4
|
+
data.tar.gz: 1ddf9051f5e37c8f55ad9400bd42a267428b0f0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1e47d19d54e1f4552dd171ed9526be011fb2519101f35744e8a814883ed9decbfda0a6bdae3c08e89c71de17f1fd3c56058b525c678e5d9154beccfe103ff8e
|
7
|
+
data.tar.gz: ed981c9daedcd7ab83e6a892f2c2382bd4dfa1b8cc41033ac3965cbd43b5c70c5434b46d182c239805feeeb192b6b2e55ec9d02f3150309311e18c661b7840f0
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
[gemnasium]: https://gemnasium.com/scottsuch/capistrano-graphite
|
9
9
|
[travis]: http://travis-ci.org/scottsuch/capistrano-graphite
|
10
10
|
[codeclimate]: https://codeclimate.com/github/scottsuch/capistrano-graphite
|
11
|
-
This gem works with Capistrano v3.1.0 and above and was based off the work on [this gem](
|
11
|
+
This gem works with Capistrano v3.1.0 and above and was based off the work on [this gem](https://github.com/hellvinz/graphite-notify) which works with Capistrano v2.x.
|
12
12
|
|
13
13
|
Adding this gem to [Capistrano](https://github.com/capistrano/capistrano) deploy extends functionality by pushing events to graphite.
|
14
14
|
Currently events are only pushed after ```deploy:updated``` and ```deploy:reverted```.
|
data/lib/capistrano/graphite.rb
CHANGED
@@ -16,22 +16,21 @@ end
|
|
16
16
|
namespace :deploy do
|
17
17
|
desc 'notify graphite that a deployment occured'
|
18
18
|
task :graphite_deploy do
|
19
|
-
|
20
|
-
|
19
|
+
if fetch(:graphite_enable_events).to_i == 1
|
20
|
+
action = "deploy"
|
21
|
+
GraphiteInterface.post_event(action)
|
22
|
+
end
|
21
23
|
end
|
22
24
|
|
23
25
|
desc 'notify graphite that a rollback occured'
|
24
26
|
task :graphite_rollback do
|
25
|
-
|
26
|
-
|
27
|
+
if fetch(:graphite_enable_events).to_i == 1
|
28
|
+
action = "rollback"
|
29
|
+
GraphiteInterface.post_event(action)
|
30
|
+
end
|
27
31
|
end
|
28
32
|
|
29
|
-
#
|
30
|
-
|
31
|
-
|
32
|
-
else
|
33
|
-
# Set the order for these tasks
|
34
|
-
after 'deploy:updated', 'deploy:graphite_deploy'
|
35
|
-
after 'deploy:reverted', 'deploy:graphite_rollback'
|
36
|
-
end
|
33
|
+
# Set the order for these tasks
|
34
|
+
after 'deploy:updated', 'deploy:graphite_deploy'
|
35
|
+
after 'deploy:reverted', 'deploy:graphite_rollback'
|
37
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-graphite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scottsuch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|