capistrano-graphite 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/capistrano/graphite.rb +5 -5
- data/lib/capistrano/graphite/version.rb +1 -1
- 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: c881b4ed11b51957684f6cecb76f01c47d9cff6f
|
4
|
+
data.tar.gz: d2474ae7de12a2da95acf98f2496ce98f7e5663c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb66f2f8224eadc3702a7860dbdcbaf45aa6ec9dd0cdf53b8d162a9c8559f34502f536bd9b6c34a61528769da7b828ff2e08f3dc46e27ad93c8a97ba5fc99a87
|
7
|
+
data.tar.gz: 731a43a5fb5761b6775d6c5a16090dab49e637dbc8839dc81c89ada80e74c2522562e660031a8ae4bce9bc25126cf30ec1bae3713a69efecfbdfc29d62449e5f
|
data/CHANGELOG.md
CHANGED
data/lib/capistrano/graphite.rb
CHANGED
@@ -12,7 +12,7 @@ class GraphiteInterface
|
|
12
12
|
uri = URI.parse("#{fetch(:graphite_url)}")
|
13
13
|
req = Net::HTTP::Post.new(uri.path)
|
14
14
|
req.basic_auth(uri.user, uri.password) if uri.user
|
15
|
-
req.body = event(action).
|
15
|
+
req.body = event(action).to_json
|
16
16
|
|
17
17
|
Net::HTTP.start(uri.host, uri.port) do |http|
|
18
18
|
http.request(req)
|
@@ -58,11 +58,11 @@ namespace :load do
|
|
58
58
|
set :suppress_graphite_events, 'false'
|
59
59
|
set :graphite_event_user, ENV.fetch('USER', 'unknown')
|
60
60
|
set :graphite_event_data, -> { fetch(:graphite_event_user) }
|
61
|
-
set :graphite_event_tags, lambda do |action|
|
61
|
+
set :graphite_event_tags, (lambda do |action|
|
62
62
|
[fetch(:application), fetch(:stage), release_timestamp, action].join(',')
|
63
|
-
end
|
64
|
-
set :graphite_event_msg, lambda do |action|
|
63
|
+
end)
|
64
|
+
set :graphite_event_msg, (lambda do |action|
|
65
65
|
"#{action} #{fetch(:application)} in #{fetch(:stage)}"
|
66
|
-
end
|
66
|
+
end)
|
67
67
|
end
|
68
68
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scottsuch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|