chef-handler-opsmatic 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'chef/handler/opsmatic'
4
+ require 'chef/handler/opsmatic_version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "chef-handler-opsmatic"
@@ -4,10 +4,11 @@ require 'net/http'
4
4
  require 'uri'
5
5
  require 'json'
6
6
 
7
+ require 'chef/handler/opsmatic_version'
8
+
7
9
  class Chef
8
10
  class Handler
9
11
  class Opsmatic < ::Chef::Handler
10
- VERSION = "0.0.11"
11
12
 
12
13
  def initialize(config = {})
13
14
  @config = config
@@ -79,6 +80,10 @@ class Chef
79
80
  def collect_resources(all_resources)
80
81
  return unless File.directory?(@config[:agent_dir])
81
82
 
83
+ # if the chef run didn't even make it far enough to report resources
84
+ # we don't want to do anything
85
+ return if all_resources.nil? or all_resources.empty?
86
+
82
87
  all_resources.each do |resource|
83
88
  case resource
84
89
  when Chef::Resource::CookbookFile
@@ -0,0 +1,7 @@
1
+ class Chef
2
+ class Handler
3
+ class Opsmatic < ::Chef::Handler
4
+ VERSION = "0.0.12"
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -1,83 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-opsmatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Marcus Barczak
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
12
+ date: 2014-11-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '1.6'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.6'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rspec
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: chef
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: webmock
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  description: Chef report handler for sending run detail information to Opsmatic
@@ -87,38 +98,46 @@ executables: []
87
98
  extensions: []
88
99
  extra_rdoc_files: []
89
100
  files:
90
- - ".gitignore"
101
+ - .gitignore
91
102
  - Gemfile
92
103
  - LICENSE.md
93
104
  - README.md
94
105
  - Rakefile
95
106
  - chef-handler-opsmatic.gemspec
96
107
  - lib/chef/handler/opsmatic.rb
108
+ - lib/chef/handler/opsmatic_version.rb
97
109
  - spec/opsmatic_spec.rb
98
110
  - spec/spec_helper.rb
99
111
  homepage: https://github.com/opsmatic/chef-handler-opsmatic
100
112
  licenses:
101
113
  - MIT
102
- metadata: {}
103
114
  post_install_message:
104
115
  rdoc_options: []
105
116
  require_paths:
106
117
  - lib
107
118
  required_ruby_version: !ruby/object:Gem::Requirement
119
+ none: false
108
120
  requirements:
109
- - - ">="
121
+ - - ! '>='
110
122
  - !ruby/object:Gem::Version
111
123
  version: '0'
124
+ segments:
125
+ - 0
126
+ hash: -3247119042070757070
112
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
+ none: false
113
129
  requirements:
114
- - - ">="
130
+ - - ! '>='
115
131
  - !ruby/object:Gem::Version
116
132
  version: '0'
133
+ segments:
134
+ - 0
135
+ hash: -3247119042070757070
117
136
  requirements: []
118
137
  rubyforge_project:
119
- rubygems_version: 2.2.2
138
+ rubygems_version: 1.8.23.2
120
139
  signing_key:
121
- specification_version: 4
140
+ specification_version: 3
122
141
  summary: Chef report handler for sending run detail information to Opsmatic
123
142
  test_files:
124
143
  - spec/opsmatic_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e92ac7fef62bc8a1a047a5a4564b21d5206fbc29
4
- data.tar.gz: 1694cd1849066a1337531b8037452a69e900fb26
5
- SHA512:
6
- metadata.gz: 65b6bbe1009077fa24c4404284e019a9515fc200172e853dc6332228999ee6158a85a0fb18b604910c677d8fac0d44ab0d8efa3111ff1f81d9b2f3b73a3ccabd
7
- data.tar.gz: 74a096d467df9191c8f79df68fbe2c441bebd5dceff8536d26ddd76439faf30c3ea032a0baf5685c95d90a418ff232a67f3fb23214561616e27c24048aa4fbfe