Sha256: 94de9ac6d972cf1393314aa30ef8ca0bdcc47ec6c90b5a0021a020fad4da1d78
Contents?: true
Size: 653 Bytes
Versions: 46
Compression:
Stored size: 653 Bytes
Contents
module Ridley module HostConnector 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
46 entries across 46 versions & 2 rubygems