Sha256: 28785bf7f8a11e706a6a301e3772546884802f1ab89922fa94e865e5ab4bcd7b
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 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 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.2 | lib/xmlsec-shim.rb |