capistrano-graphite 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70d0ed119d1db1f582739a0c79a67738d70868da
4
- data.tar.gz: 6ee519436aab9d5aacfb09fa9e33c01cbd290ed9
3
+ metadata.gz: 68a94a89d4e982b560cacd16c846944e03e04662
4
+ data.tar.gz: 1ddf9051f5e37c8f55ad9400bd42a267428b0f0a
5
5
  SHA512:
6
- metadata.gz: 58570d882766488334b815965e85713b25efd6398901fe7288302d1c623db36f03f371f572c37f44042f1169699396631fb9fe34c4dc8fb2872fb9836c62bee1
7
- data.tar.gz: 4f6ebe2ec90c0b33b43d033c21f1b3a1b4a219aef84760956f366895f9d903a8384f60e9512242f8506c6c647ecc04fe74b001aad7e44a01a235af1a79d8b989
6
+ metadata.gz: b1e47d19d54e1f4552dd171ed9526be011fb2519101f35744e8a814883ed9decbfda0a6bdae3c08e89c71de17f1fd3c56058b525c678e5d9154beccfe103ff8e
7
+ data.tar.gz: ed981c9daedcd7ab83e6a892f2c2382bd4dfa1b8cc41033ac3965cbd43b5c70c5434b46d182c239805feeeb192b6b2e55ec9d02f3150309311e18c661b7840f0
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 scottsuch
1
+ Copyright (c) 2014 Scott Gorsuch
2
2
 
3
3
  MIT License
4
4
 
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](For a gem that works with older versions of Capistrano look [here](https://github.com/hellvinz/graphite-notify) which works with Capistrano v2.x.
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```.
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Graphite
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -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
- action = "deploy"
20
- GraphiteInterface.post_event(action)
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
- action = "rollback"
26
- GraphiteInterface.post_event(action)
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
- # Check the graphite_enable_events option
30
- if "#{fetch(:graphite_enable_events)}".to_i == 0
31
- puts "No events will be sent to graphite."
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler