Sha256: 4315bd8d7d18491dffa85dc971fc8b0534f7b83c2ebbb8fbb43e94310985c763
Contents?: true
Size: 702 Bytes
Versions: 17
Compression:
Stored size: 702 Bytes
Contents
module Ridley module HostConnector # @author Jamie Winsor <reset@riotgames.com> class Response attr_reader :host attr_accessor :stdout attr_accessor :stderr attr_accessor :exit_code attr_accessor :exit_signal def initialize(host, options = {}) @host = host @stdout = options[:stdout] || String.new @stderr = options[:stderr] || String.new @exit_code = options[:exit_code] || -1 @exit_signal = options[:exit_signal] || nil end # Return true if the response was not successful # # @return [Boolean] def error? self.exit_code != 0 end end end end
Version data entries
17 entries across 17 versions & 1 rubygems