ey_stonith 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. data/lib/ey_stonith/awsm_notifier.rb +4 -1
  2. metadata +2 -2
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'net/http'
3
+ require 'net/https'
3
4
  require 'timeout'
4
5
 
5
6
  module EY
@@ -32,7 +33,9 @@ module EY
32
33
 
33
34
  def do_request
34
35
  response = Timeout.timeout(10) do
35
- Net::HTTP.new(@uri.host, @uri.port).request_post(@uri.path, process_payload(payload), headers)
36
+ http = Net::HTTP.new(@uri.host, @uri.port)
37
+ http.use_ssl = true if @uri.scheme == "https"
38
+ http.request_post(@uri.path, process_payload(payload), headers)
36
39
  end
37
40
  [response.code.to_i, response.body]
38
41
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ezra Zygmuntowicz