knife-sharp 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 018cf25dda960f3652b54e2a6af359ad31f51c26
4
- data.tar.gz: 1b5e6662f8e66824fa4a2ebe1f0447054abf2327
3
+ metadata.gz: 72cedb97113f1f4d9ad8e8652bc161f724426a99
4
+ data.tar.gz: 5483f07eba91fe2226ccf70019ed9b0db53b3341
5
5
  SHA512:
6
- metadata.gz: c1b8ecc0fc02074a3f6c2227d0838895e73cc0df45f6ea3f2360744a5b57eab9b32e695f66eac94873f708fa676c1d8dada0e33634712783cd40fc8f69812e62
7
- data.tar.gz: 1b37cb28c664955de7c815cb2f7fe6f9a5beca5b86bf76047b5a69b9f37026622535c2ac1e0d0bdca91db2e8d8fa46259a88d2fa66e2211b8d8cd3e88f8aebf4
6
+ metadata.gz: 014d12b03f3716c9043e7f9f2ba62feb14c1bad9b53fbfb88ca491056ef7b6f90ab467768262573309a259b3b821fdf05c7da67b755e7630d9e119747a9cedac
7
+ data.tar.gz: d84b9617309b9a30b13c851c059ce154ad404b671146393f30413e21d025518719c44850c27bef6d825925f3c23f51d9d4d78f39e1d3b90659612700f5005c07
@@ -1,17 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- knife-sharp (0.6.3)
4
+ knife-sharp (0.6.1)
5
5
  chef (>= 11)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- chef (12.0.3)
11
- chef-zero (~> 3.2)
10
+ builder (3.2.2)
11
+ chef (12.2.1)
12
+ chef-zero (~> 4.0)
12
13
  diff-lcs (~> 1.2, >= 1.2.4)
13
14
  erubis (~> 2.7)
14
- ffi-yajl (~> 1.2)
15
+ ffi-yajl (>= 1.2, < 3.0)
15
16
  highline (~> 1.6, >= 1.6.9)
16
17
  mixlib-authentication (~> 1.3)
17
18
  mixlib-cli (~> 1.4)
@@ -23,8 +24,14 @@ GEM
23
24
  ohai (~> 8.0)
24
25
  plist (~> 3.1.0)
25
26
  pry (~> 0.9)
26
- chef-zero (3.2)
27
- ffi-yajl (~> 1.1)
27
+ rspec-core (~> 3.2)
28
+ rspec-expectations (~> 3.2)
29
+ rspec-mocks (~> 3.2)
30
+ rspec_junit_formatter (~> 0.2.0)
31
+ serverspec (~> 2.7)
32
+ specinfra (~> 2.10)
33
+ chef-zero (4.2.1)
34
+ ffi-yajl (>= 1.1, < 3.0)
28
35
  hashie (~> 2.0)
29
36
  mixlib-log (~> 1.3)
30
37
  rack
@@ -32,39 +39,40 @@ GEM
32
39
  coderay (1.1.0)
33
40
  diff-lcs (1.2.5)
34
41
  erubis (2.7.0)
35
- ffi (1.9.5)
36
- ffi-yajl (1.4.0)
42
+ ffi (1.9.8)
43
+ ffi-yajl (2.0.0)
37
44
  ffi (~> 1.5)
38
45
  libyajl2 (~> 1.2)
39
46
  hashie (2.1.2)
40
- highline (1.6.21)
47
+ highline (1.7.1)
41
48
  ipaddress (0.8.0)
42
49
  libyajl2 (1.2.0)
43
50
  method_source (0.8.2)
44
- mime-types (1.25.1)
51
+ mime-types (2.4.3)
45
52
  mixlib-authentication (1.3.0)
46
53
  mixlib-log
47
54
  mixlib-cli (1.5.0)
48
55
  mixlib-config (2.1.0)
49
56
  mixlib-log (1.6.0)
50
57
  mixlib-shellout (2.0.1)
51
- net-dhcp (1.2.1)
52
- net-ssh (2.9.1)
58
+ multi_json (1.11.0)
59
+ net-scp (1.2.1)
60
+ net-ssh (>= 2.6.5)
61
+ net-ssh (2.9.2)
53
62
  net-ssh-gateway (1.2.0)
54
63
  net-ssh (>= 2.6.5)
55
- net-ssh-multi (1.2.0)
64
+ net-ssh-multi (1.2.1)
56
65
  net-ssh (>= 2.6.5)
57
66
  net-ssh-gateway (>= 1.2.0)
58
- ohai (8.0.1)
67
+ ohai (8.2.0)
59
68
  ffi (~> 1.9)
60
- ffi-yajl (~> 1.1)
69
+ ffi-yajl (>= 1.1, < 3.0)
61
70
  ipaddress
62
- mime-types (~> 1.16)
71
+ mime-types (~> 2.0)
63
72
  mixlib-cli
64
73
  mixlib-config (~> 2.0)
65
74
  mixlib-log
66
75
  mixlib-shellout (~> 2.0)
67
- net-dhcp
68
76
  rake (~> 10.1)
69
77
  systemu (~> 2.6.4)
70
78
  wmi-lite (~> 1.0)
@@ -73,10 +81,38 @@ GEM
73
81
  coderay (~> 1.1.0)
74
82
  method_source (~> 0.8.1)
75
83
  slop (~> 3.4)
76
- rack (1.6.0.beta)
84
+ rack (1.6.0)
77
85
  rake (10.4.2)
86
+ rspec (3.2.0)
87
+ rspec-core (~> 3.2.0)
88
+ rspec-expectations (~> 3.2.0)
89
+ rspec-mocks (~> 3.2.0)
90
+ rspec-core (3.2.3)
91
+ rspec-support (~> 3.2.0)
92
+ rspec-expectations (3.2.1)
93
+ diff-lcs (>= 1.2.0, < 2.0)
94
+ rspec-support (~> 3.2.0)
95
+ rspec-its (1.2.0)
96
+ rspec-core (>= 3.0.0)
97
+ rspec-expectations (>= 3.0.0)
98
+ rspec-mocks (3.2.1)
99
+ diff-lcs (>= 1.2.0, < 2.0)
100
+ rspec-support (~> 3.2.0)
101
+ rspec-support (3.2.2)
102
+ rspec_junit_formatter (0.2.0)
103
+ builder (< 4)
104
+ rspec (>= 2, < 4)
105
+ rspec-core (!= 2.12.0)
106
+ serverspec (2.14.1)
107
+ multi_json
108
+ rspec (~> 3.0)
109
+ rspec-its
110
+ specinfra (~> 2.25)
78
111
  slop (3.6.0)
79
- systemu (2.6.4)
112
+ specinfra (2.28.2)
113
+ net-scp
114
+ net-ssh
115
+ systemu (2.6.5)
80
116
  uuidtools (2.1.5)
81
117
  wmi-lite (1.0.0)
82
118
 
@@ -20,6 +20,10 @@ notification:
20
20
  username: "Nicolas"
21
21
  # don't notify if updates are done on development chef
22
22
  skip: [dev]
23
+ # Set to :none to skip CA cert checking
24
+ ssl_verify_mode: :verify
25
+ # Optional path to CA file
26
+ ssl_ca_file: "~/.chef/my-ca.pem"
23
27
 
24
28
  # ignore cookbooks/data bags/roles depending on chef server
25
29
  # key is the name of your server (in a knife sharp server sense)
@@ -1,3 +1,3 @@
1
1
  module KnifeSharp
2
- VERSION = "0.6.3"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -110,9 +110,13 @@ module KnifeSharp
110
110
  require "uri"
111
111
  uri = URI.parse("#{config["url"]}/#{config["channel"]}")
112
112
  notif = "chef: #{message} by #{config["username"]}"
113
- Net::HTTP.post_form(uri, { "message" => notif })
114
- rescue
115
- ui.error "Unable to notify via bot."
113
+ http = Net::HTTP.new(uri.host, uri.port)
114
+ http.use_ssl = (uri.scheme == "https")
115
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if config["ssl_verify_mode"] == :none
116
+ http.ca_file = File.expand_path(config["ssl_ca_file"]) if config["ssl_ca_file"]
117
+ http.post(uri.path, "message=#{notif}")
118
+ rescue Exception => e
119
+ ui.error "Unable to notify via bot. #{e.message}"
116
120
  end
117
121
  end
118
122
 
@@ -131,4 +135,3 @@ module KnifeSharp
131
135
  end
132
136
  end
133
137
  end
134
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-sharp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Szalay
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-29 00:00:00.000000000 Z
12
+ date: 2019-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 2.2.2
74
+ rubygems_version: 2.5.2.3
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Knife sharp plugin