Sha256: 5a8e04320e7f954292a49c649261a2845e37ec9e29e79f633de292411951119a
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
require "xmlsec-shim/version" require 'pathname' require 'open3' module Xmlsec module Shim Root = Pathname.new(File.expand_path('../..', __FILE__)) Bin = Root.join('bin') # Executables = Bin.children.inject({}) { |h, p| # h[p.basename.to_s.to_sym] = p.to_s # h # } class Bridge def self.sign(doc_file, key_file) binary_name = Bin.join("xmlsec1") o, s = Open3.capture2("#{binary_name} --sign --privkey #{key_file} #{doc_file}") output = o.gets unless s.success? raise output end output end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmlsec-shim-1.2.18.1 | lib/xmlsec-shim.rb |