chef-handler-opsmatic 0.0.9 → 0.0.10
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/lib/chef/handler/opsmatic.rb +6 -2
- 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: 50a432be3c1b081ad66641fa4c019cb0c741e197
|
|
4
|
+
data.tar.gz: 8f50b911b151d228840f15cb3314ea93ba6f0563
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d73aa4bcca6d02a7d50c5cfe72a0958286186000b0ed433fffcda17f7f2feb25fe5e04976d3f263401444ab20e0ec02e75b63e9eef985d3cc0e99831c8feca3
|
|
7
|
+
data.tar.gz: 6715f0f5af0b2379a703befcddcf22c1322ec394e0b9cb96a0fa0d0ebb8531b104cded691a2d4f7fc857dd4592364da191a94046677bee47cc13e486af9cf659
|
|
@@ -7,7 +7,7 @@ require 'json'
|
|
|
7
7
|
class Chef
|
|
8
8
|
class Handler
|
|
9
9
|
class Opsmatic < ::Chef::Handler
|
|
10
|
-
VERSION = "0.0.
|
|
10
|
+
VERSION = "0.0.10"
|
|
11
11
|
|
|
12
12
|
def initialize(config = {})
|
|
13
13
|
@config = config
|
|
@@ -110,7 +110,11 @@ class Chef
|
|
|
110
110
|
def submit(event)
|
|
111
111
|
Chef::Log.info("Posting chef run report to Opsmatic")
|
|
112
112
|
|
|
113
|
-
url = URI.parse(
|
|
113
|
+
url = URI.parse(@config[:collector_url])
|
|
114
|
+
|
|
115
|
+
qs = url.query.nil? ? [] : url.query.split("&")
|
|
116
|
+
qs << "token=#{@config[:integration_token]}"
|
|
117
|
+
url.query = qs.join("&")
|
|
114
118
|
|
|
115
119
|
http = Net::HTTP.new(url.host, url.port)
|
|
116
120
|
http.open_timeout = 2
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-handler-opsmatic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcus Barczak
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|