sensu-plugins-consul 0.0.1.alpha.2 → 0.0.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: 32d7d9fe845e81eb673ce76749ecce2d3c70219a
4
- data.tar.gz: d721b53159beecf78cc7971f19227142f238cddb
3
+ metadata.gz: 4f6629817d866d36fe5dda3a196273cab20f7182
4
+ data.tar.gz: e41df8379099c55755df6c8826423917ca322c6d
5
5
  SHA512:
6
- metadata.gz: 675329dfe573908a13c1940c2d62ef4b16e01ccbf350ffcbf9f3d265139390e645d7e1277b5cde03d873c5379caa561675c49dd4f7b389ca8088be3654bbc3c8
7
- data.tar.gz: 2bc86b74a862db208bdfb4fc609faea24587605dbe9fad8ab88ea2b5b588da59c1d0f68dd204fb26b6e4e3ff0ecbdf0ee9933dd30840f248afb8e25e86e6015f
6
+ metadata.gz: 2cacff25ad01a6965b96f626f0a94a4a41eb009208a8cf49155da0bdfbfc05416e9776887c2f929a141b410da77c1d6a7aa844c2cde62b941356bedf677a0418
7
+ data.tar.gz: 8adcc911ac451484482d4a1a6941f5324b946582b7389a63c4317f27b69a97b31e9ed04b159c32aafd061a210bab0073d00c5d1917ac67a34c2d72f97d3657ec
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,8 +1,11 @@
1
- #### 0.0.1.alpha.1
1
+ #Change Log
2
+ This project adheres to [Semantic Versioning](http://semver.org/).
2
3
 
3
- * initial code from community-repo
4
+ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
5
 
5
- #### 0.0.1.alpha.2
6
+ ## Unreleased][unreleased]
6
7
 
7
- * add check to get consul checks status of a service
8
- * add check to get all consul checks in a non-passing state
8
+ ## 0.0.1 - 2015-05-21
9
+
10
+ ### Added
11
+ - initial release
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 devops@yieldbot.com
1
+ Copyright (c) 2015 Sensu-Plugins
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -6,54 +6,16 @@
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-consul/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-consul)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-consul.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-consul)
8
8
  ## Functionality
9
+ [![Codeship Status for sensu-plugins/sensu-plugins-consul](https://codeship.com/projects/c01130b0-cddd-0132-9d10-36838894891f/status?branch=master)](https://codeship.com/projects/76354)
9
10
 
10
11
  ## Files
11
- * bin/check-consul
12
- * bin/check-service-consul
12
+ * bin/check-consul.rb
13
+ * bin/check-service-consul.rb
13
14
 
14
15
  ## Usage
15
16
 
16
17
  ## Installation
17
18
 
18
- Add the public key (if you haven’t already) as a trusted certificate
19
-
20
- ```
21
- gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
22
- gem install sensu-plugins-consul -P MediumSecurity
23
- ```
24
-
25
- You can also download the key from /certs/ within each repository.
26
-
27
- #### Rubygems
28
-
29
- `gem install sensu-plugins-consul`
30
-
31
- #### Bundler
32
-
33
- Add *sensu-plugins-disk-checks* to your Gemfile and run `bundle install` or `bundle update`
34
-
35
- #### Chef
36
-
37
- Using the Sensu **sensu_gem** LWRP
38
- ```
39
- sensu_gem 'sensu-plugins-consul' do
40
- options('--prerelease')
41
- version '0.0.1.alpha.1'
42
- end
43
- ```
44
-
45
- Using the Chef **gem_package** resource
46
- ```
47
- gem_package 'sensu-plugins-consul' do
48
- options('--prerelease')
49
- version '0.0.1.alpha.1'
50
- end
51
- ```
19
+ [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
52
20
 
53
21
  ## Notes
54
-
55
- [1]:[https://travis-ci.org/sensu-plugins/sensu-plugins-consul]
56
- [2]:[http://badge.fury.io/rb/sensu-plugins-consul]
57
- [3]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-consul]
58
- [4]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-consul]
59
- [5]:[https://gemnasium.com/sensu-plugins/sensu-plugins-consul]
@@ -70,7 +70,7 @@ class ConsulStatus < Sensu::Plugin::Check::CLI
70
70
  end
71
71
  end
72
72
 
73
- def run
73
+ def run # rubocop:disable all
74
74
  r = RestClient::Resource.new("http://#{config[:server]}:#{config[:port]}/v1/status/leader", timeout: 5).get
75
75
  if r.code == 200
76
76
  if valid_ip(strip_ip(r.body))
@@ -23,7 +23,7 @@
23
23
  # NOTES:
24
24
  #
25
25
  # LICENSE:
26
- # Copyright 2015 Yieldbot, Inc. <devops@yieldbot.com>
26
+ # Copyright 2015 Yieldbot, Inc. <Sensu-Plugins>
27
27
  # Released under the same terms as Sensu (the MIT license); see LICENSE
28
28
  # for details.
29
29
  #
@@ -1,7 +1,14 @@
1
+ require 'sensu-plugins-consul/version'
2
+
3
+ # Load the defaults
4
+
1
5
  #
2
- # Set gem version
6
+ # Default class
3
7
  #
4
8
  module SensuPluginsConsul
5
- # Gem version
6
- VERSION = '0.0.1.alpha.2'
9
+ class << self
10
+ end
11
+
12
+ class << self
13
+ end
7
14
  end
@@ -0,0 +1,28 @@
1
+ require 'json'
2
+
3
+ # encoding: utf-8
4
+ module SensuPluginsConsul
5
+ # This defines the version of the gem
6
+ module Version
7
+ MAJOR = 0
8
+ MINOR = 0
9
+ PATCH = 1
10
+
11
+ VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
+
13
+ NAME = 'sensu-plugins-consul'
14
+ BANNER = "#{NAME} v%s"
15
+
16
+ module_function
17
+
18
+ def version
19
+ format(BANNER, VER_STRING)
20
+ end
21
+
22
+ def json_version
23
+ {
24
+ 'version' => VER_STRING
25
+ }.to_json
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha.2
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Yieldbot, Inc. and contributors
7
+ - Sensu Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-03-24 00:00:00.000000000 Z
33
+ date: 2015-05-22 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -78,163 +78,168 @@ dependencies:
78
78
  name: codeclimate-test-reporter
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '0'
83
+ version: '0.4'
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: '0.4'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rubocop
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '='
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: 0.17.0
97
+ version: '0.30'
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '='
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: 0.17.0
104
+ version: '0.30'
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: rspec
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: '3.1'
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ~>
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: '3.1'
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: bundler
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: '1.7'
126
126
  type: :development
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ~>
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '1.7'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: rake
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ~>
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: '10.0'
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ~>
144
+ - - "~>"
145
145
  - !ruby/object:Gem::Version
146
146
  version: '10.0'
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: github-markup
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ~>
151
+ - - "~>"
152
152
  - !ruby/object:Gem::Version
153
153
  version: '1.3'
154
154
  type: :development
155
155
  prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - ~>
158
+ - - "~>"
159
159
  - !ruby/object:Gem::Version
160
160
  version: '1.3'
161
161
  - !ruby/object:Gem::Dependency
162
162
  name: redcarpet
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ~>
165
+ - - "~>"
166
166
  - !ruby/object:Gem::Version
167
167
  version: '3.2'
168
168
  type: :development
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ~>
172
+ - - "~>"
173
173
  - !ruby/object:Gem::Version
174
174
  version: '3.2'
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: yard
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - ~>
179
+ - - "~>"
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0.8'
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ~>
186
+ - - "~>"
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0.8'
189
189
  - !ruby/object:Gem::Dependency
190
190
  name: pry
191
191
  requirement: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - ~>
193
+ - - "~>"
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0.10'
196
196
  type: :development
197
197
  prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - ~>
200
+ - - "~>"
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0.10'
203
203
  description: Sensu plugins for working with Consul
204
- email: <sensu-users@googlegroups.com>
205
- executables:
206
- - check-consul-leader.rb
207
- - check-service-consul.rb
204
+ email: "<sensu-users@googlegroups.com>"
205
+ executables: []
208
206
  extensions: []
209
207
  extra_rdoc_files: []
210
208
  files:
209
+ - CHANGELOG.md
210
+ - LICENSE
211
+ - README.md
211
212
  - bin/check-consul-leader.rb
212
213
  - bin/check-service-consul.rb
213
214
  - lib/sensu-plugins-consul.rb
214
- - LICENSE
215
- - README.md
216
- - CHANGELOG.md
215
+ - lib/sensu-plugins-consul/version.rb
217
216
  homepage: https://github.com/sensu-plugins/sensu-plugins-consul
218
217
  licenses:
219
218
  - MIT
220
- metadata: {}
221
- post_install_message:
219
+ metadata:
220
+ maintainer: "@mattyjones"
221
+ development_status: active
222
+ production_status: unstable - testing recommended
223
+ release_draft: 'false'
224
+ release_prerelease: 'false'
225
+ post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
226
+ in /etc/default/sensu
222
227
  rdoc_options: []
223
228
  require_paths:
224
229
  - lib
225
230
  required_ruby_version: !ruby/object:Gem::Requirement
226
231
  requirements:
227
- - - '>='
232
+ - - ">="
228
233
  - !ruby/object:Gem::Version
229
234
  version: 1.9.3
230
235
  required_rubygems_version: !ruby/object:Gem::Requirement
231
236
  requirements:
232
- - - '>'
237
+ - - ">="
233
238
  - !ruby/object:Gem::Version
234
- version: 1.3.1
239
+ version: '0'
235
240
  requirements: []
236
241
  rubyforge_project:
237
- rubygems_version: 2.0.14
242
+ rubygems_version: 2.4.6
238
243
  signing_key:
239
244
  specification_version: 4
240
245
  summary: Sensu plugins for working with Consul
metadata.gz.sig CHANGED
Binary file