Blame view

lib/syspro.rb 336 Bytes
51fb5579   Isaac Lewis   add client test, ...
1
2
3
4
5
6
  require "cgi"
  require "faraday"
  require "json"
  require "logger"
  require "openssl"
  
31f9a345   Isaac Lewis   init; some tests
7
  require "syspro/version"
51fb5579   Isaac Lewis   add client test, ...
8
  require "syspro/syspro_client"
31f9a345   Isaac Lewis   init; some tests
9
10
11
  
  module Syspro
    # Your code goes here...
51fb5579   Isaac Lewis   add client test, ...
12
13
14
15
16
17
18
19
20
    #
  
    def self.ca_store
      @ca_store ||= begin
        store = OpenSSL::X509::Store.new
        store.add_file(ca_bundle_path)
        store
      end
    end
31f9a345   Isaac Lewis   init; some tests
21
  end