Sha256: 38686c7af8c0401183846c8ffba7be4b13d702bfa8edac233e9e993c97096ffb
Contents?: true
Size: 574 Bytes
Versions: 27
Compression:
Stored size: 574 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] super(opts.merge( output: parse_output ? ColonOutput.parse(stdout.string) : stdout.string)) end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems