Sha256: afdcccdfdc3ed68ee634e1aaf88080bfbbb989edca1147406fb5da7b1c698a95
Contents?: true
Size: 592 Bytes
Versions: 7
Compression:
Stored size: 592 Bytes
Contents
require 'stringio' module RubyGPG2 module Commands module Mixins module WithCapturedOutput def initialize(*args) super(*args) @stdout = StringIO.new unless (defined?(@stdout) && @stdout.respond_to?(:string)) end def do_after(opts) parse_output = opts[:parse_output].nil? ? true : opts[:parse_output] output_method = opts[:output_method] parse_output ? ColonOutput.parse(stdout.string).send(output_method) : stdout.string end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems