chef-handler-spinup-complete 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cc1b1fc9972e829d503adf4735759b54ebc5bf85
4
+ data.tar.gz: 8528fb66a7b9010975ae777b1ebf81039ca50f3c
5
+ SHA512:
6
+ metadata.gz: 5bc7bbbf77825bf9bd7e3748ad7fb938d59e0c187736c041d2cd826869919a8abf705f8859a1a187802e5d8a7269850c6759b2b77f4eae5c568a8f1fc547e88d
7
+ data.tar.gz: 1575d2c9d34810d40cfa559ec53e76d802daad532a5e512aca4a092227af41619762f3f4b4f18d9767cc241dc7d8d5d4c58836b076bc63d08395e2c55560d3b9
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'chef-handler-spinup-complete'
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.author = 'Simple Finance'
5
5
  s.email = 'ops@simple.com'
6
6
  s.homepage = 'http://github.com/SimpleFinance/chef-handler-sensu-event'
@@ -1,5 +1,5 @@
1
1
  # chef-handler-spinup-complete.rb
2
- #
2
+ #
3
3
  # Author: Simple Finance <ops@simple.com>
4
4
  # License: Apache License, Version 2.0
5
5
  #
@@ -34,6 +34,11 @@ class Chef
34
34
  end
35
35
 
36
36
  def report
37
+ # This sleep is to avoid Sensu client having been restarted as the last
38
+ # notification of the Chef run and this handler running immediately
39
+ # during the reporting phase. In that case, the handler will run too
40
+ # quickly and get a ECONNREFUSED.
41
+ sleep(1)
37
42
  begin
38
43
  sock = TCPSocket.new('127.0.0.1', 3030)
39
44
  sock.write(warn_first)
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-spinup-complete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Simple Finance
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-05-02 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Notify when instance spinup is complete
15
14
  email: ops@simple.com
@@ -17,33 +16,33 @@ executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
19
+ - LICENSE
20
+ - README.md
20
21
  - chef-handler-spinup-complete-0.1.0.gem
22
+ - chef-handler-spinup-complete-0.2.0.gem
21
23
  - chef-handler-spinup-complete.gemspec
22
24
  - lib/chef-handler-spinup-complete.rb
23
- - LICENSE
24
- - README.md
25
25
  homepage: http://github.com/SimpleFinance/chef-handler-sensu-event
26
26
  licenses: []
27
+ metadata: {}
27
28
  post_install_message:
28
29
  rdoc_options: []
29
30
  require_paths:
30
31
  - lib
31
32
  required_ruby_version: !ruby/object:Gem::Requirement
32
- none: false
33
33
  requirements:
34
- - - ! '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  required_rubygems_version: !ruby/object:Gem::Requirement
38
- none: false
39
38
  requirements:
40
- - - ! '>='
39
+ - - ">="
41
40
  - !ruby/object:Gem::Version
42
41
  version: '0'
43
42
  requirements: []
44
43
  rubyforge_project:
45
- rubygems_version: 1.8.23.2
44
+ rubygems_version: 2.2.2
46
45
  signing_key:
47
- specification_version: 3
46
+ specification_version: 4
48
47
  summary: Notifies when spinup is complete
49
48
  test_files: []