capistrano-graphite 1.0.2 → 1.0.3
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/.travis.yml +2 -0
- data/CHANGELOG.md +16 -1
- data/LICENSE.txt +1 -1
- data/README.md +2 -3
- data/capistrano-graphite.gemspec +0 -6
- data/lib/capistrano/graphite.rb +6 -6
- data/lib/capistrano/graphite/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2c1f690fc5d7ed7909edf58dce04a3037200d0e
|
|
4
|
+
data.tar.gz: 95ef00184776082bc7bc259eaaeeda993ab75a64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b37ac4b8ecf1ee70ff9ee499c5ffe84b578ba0d9a39c46751b23dff4d48e4061727a2a65e4c6b4d9f364cc513a8601bdf213871be40cd36ff97b5e26dee62ca
|
|
7
|
+
data.tar.gz: 629dd91c96526d18c8c64150ad5973d1f636a82845c87d687039a46fa14b7c2464e1abd7d414298026eece16fb0676f0fe53fed8e9aed11733c0220de9cde170
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
## 1.0.
|
|
1
|
+
## 1.0.3 (2015-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## 1.0.2 (2014-11-19)
|
|
6
|
+
|
|
7
|
+
BUG FIXES:
|
|
8
|
+
|
|
9
|
+
- Fix bug introduced by [GH-17].
|
|
10
|
+
- Fix issue where notification could be sent on failed deploy/rollback.
|
|
11
|
+
|
|
12
|
+
IMPROVEMENTS:
|
|
13
|
+
|
|
14
|
+
- Cleaner Rake syntax.
|
|
15
|
+
|
|
16
|
+
## 1.0.1 (2014-11-19)
|
|
2
17
|
|
|
3
18
|
BUG FIXES:
|
|
4
19
|
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -36,12 +36,11 @@ Path to your graphite instance. Port and user:password are optional.
|
|
|
36
36
|
|
|
37
37
|
set :graphite_url, "http://user:password@example.com:8000/events/"
|
|
38
38
|
|
|
39
|
-
Disable sending events for a particular stage by setting the following
|
|
40
|
-
Note that the config `graphite_enable_events` has been deprecated in favor of
|
|
41
|
-
the config `suppress_graphite_events` below
|
|
39
|
+
Disable sending events for a particular stage by setting the following:
|
|
42
40
|
|
|
43
41
|
set :suppress_graphite_events, "true" # This is set to false by default
|
|
44
42
|
|
|
43
|
+
Note that the config `graphite_enable_events` was deprecated in version 1.0.0.
|
|
45
44
|
|
|
46
45
|
### Test that it's working
|
|
47
46
|
You can run the following on it's own assuming you have configured the graphite url
|
data/capistrano-graphite.gemspec
CHANGED
|
@@ -18,12 +18,6 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
|
|
19
19
|
s.required_ruby_version = '> 1.9'
|
|
20
20
|
|
|
21
|
-
s.post_install_message = 'The config `graphite_enable_events` has changed ' \
|
|
22
|
-
'to `suppress_graphite_events` and will accept ' \
|
|
23
|
-
'a true or false. See the README.md at ' \
|
|
24
|
-
'https://github.com/scottsuch/capistrano-graphite ' \
|
|
25
|
-
'for details.'\
|
|
26
|
-
|
|
27
21
|
s.files = `git ls-files -z`.split("\x0")
|
|
28
22
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
29
23
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
data/lib/capistrano/graphite.rb
CHANGED
|
@@ -28,13 +28,13 @@ namespace :deploy do
|
|
|
28
28
|
task :post_graphite, :action do |_, args|
|
|
29
29
|
action = args[:action]
|
|
30
30
|
run_locally do
|
|
31
|
-
if fetch(:suppress_graphite_events).downcase == '
|
|
31
|
+
if fetch(:suppress_graphite_events).downcase == 'false'
|
|
32
32
|
GraphiteInterface.new.post_event("#{action}")
|
|
33
33
|
info("#{action.capitalize} event posted to graphite.")
|
|
34
|
-
elsif fetch(:suppress_graphite_events).downcase == '
|
|
35
|
-
info('No event posted: `suppress_graphite_events` set to true.')
|
|
34
|
+
elsif fetch(:suppress_graphite_events).downcase == 'true'
|
|
35
|
+
info('No event posted: `suppress_graphite_events` is set to true.')
|
|
36
36
|
else
|
|
37
|
-
warn('No event posted: `suppress_graphite_events` set incorrectly.')
|
|
37
|
+
warn('No event posted: `suppress_graphite_events` is set incorrectly.')
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -50,7 +50,7 @@ end
|
|
|
50
50
|
|
|
51
51
|
namespace :load do
|
|
52
52
|
task :defaults do
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
set_if_empty :suppress_graphite_events, 'false'
|
|
54
|
+
set_if_empty :local_user, ENV['USER']
|
|
55
55
|
end
|
|
56
56
|
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.3
|
|
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: 2015-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -135,9 +135,7 @@ homepage: https://github.com/scottsuch/capistrano-graphite
|
|
|
135
135
|
licenses:
|
|
136
136
|
- MIT
|
|
137
137
|
metadata: {}
|
|
138
|
-
post_install_message:
|
|
139
|
-
and will accept a true or false. See the README.md at https://github.com/scottsuch/capistrano-graphite
|
|
140
|
-
for details.
|
|
138
|
+
post_install_message:
|
|
141
139
|
rdoc_options: []
|
|
142
140
|
require_paths:
|
|
143
141
|
- lib
|
|
@@ -160,3 +158,4 @@ summary: A gem for pushing graphite events via capistrano v3 deployment
|
|
|
160
158
|
test_files:
|
|
161
159
|
- spec/grapite_spec.rb
|
|
162
160
|
- spec/spec_helper.rb
|
|
161
|
+
has_rdoc:
|