capistrano-graphite 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +9 -3
- data/CHANGELOG.md +8 -0
- data/lib/capistrano/graphite.rb +3 -2
- data/lib/capistrano/graphite/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- 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: 9e88d8b9c6c46ca2e563f5aac608079166d8a415
|
4
|
+
data.tar.gz: 3c647adb3a37c9144cd46dd32e7c47a2aa4dddb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0d250c7a9d3c846291bf5a6586972db2ed86c39539cfe5d3d2bbd469b81427fcfaae3594e50acec33ad0089074375f0e86a16ebad8f456909202e1f4132b230
|
7
|
+
data.tar.gz: ec82364bb1260d3f2a49c8f0a2d654fb64f07724cfc1665312db19957fb2d069ba0afc5d6c5ec796345f5128426be99cae20098e31553f6adf4fc6c4e0d8afcf
|
data/.rubocop_todo.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
#
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2016-02-22 21:18:24 -0500 using RuboCop version 0.37.2.
|
3
4
|
# The point is for the user to remove these configuration records
|
4
5
|
# one by one as the offenses are removed from the code base.
|
5
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -7,5 +8,10 @@
|
|
7
8
|
|
8
9
|
# Offense count: 1
|
9
10
|
Metrics/AbcSize:
|
10
|
-
Max:
|
11
|
+
Max: 19
|
11
12
|
|
13
|
+
# Offense count: 2
|
14
|
+
# Cop supports --auto-correct.
|
15
|
+
Style/UnneededInterpolation:
|
16
|
+
Exclude:
|
17
|
+
- 'lib/capistrano/graphite.rb'
|
data/CHANGELOG.md
CHANGED
data/lib/capistrano/graphite.rb
CHANGED
@@ -5,6 +5,7 @@ require 'net/http'
|
|
5
5
|
require 'uri'
|
6
6
|
require 'sshkit'
|
7
7
|
require 'sshkit/dsl'
|
8
|
+
require 'json'
|
8
9
|
|
9
10
|
# Build the request to post
|
10
11
|
class GraphiteInterface
|
@@ -36,10 +37,10 @@ namespace :deploy do
|
|
36
37
|
task :post_graphite, :action do |_, args|
|
37
38
|
action = args[:action]
|
38
39
|
run_locally do
|
39
|
-
if fetch(:suppress_graphite_events).
|
40
|
+
if fetch(:suppress_graphite_events).casecmp('false')
|
40
41
|
GraphiteInterface.new.post_event("#{action}")
|
41
42
|
info("#{action.capitalize} event posted to graphite.")
|
42
|
-
elsif fetch(:suppress_graphite_events).
|
43
|
+
elsif fetch(:suppress_graphite_events).casecmp('true')
|
43
44
|
info('No event posted: `suppress_graphite_events` is set to true.')
|
44
45
|
else
|
45
46
|
warn('No event posted: `suppress_graphite_events` is set incorrectly.')
|
data/spec/spec_helper.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scottsuch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|