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

Version Path
ridley-1.0.0.rc2 lib/ridley/host_connector/response.rb
ridley-1.0.0.rc1 lib/ridley/host_connector/response.rb
ridley-0.12.4 lib/ridley/host_connector/response.rb
ridley-0.12.3 lib/ridley/host_connector/response.rb
ridley-0.12.2 lib/ridley/host_connector/response.rb
ridley-0.12.1 lib/ridley/host_connector/response.rb
ridley-0.12.0 lib/ridley/host_connector/response.rb
ridley-0.11.2 lib/ridley/host_connector/response.rb
ridley-0.12.0.rc1 lib/ridley/host_connector/response.rb
ridley-0.11.1 lib/ridley/host_connector/response.rb
ridley-0.10.2 lib/ridley/host_connector/response.rb
ridley-0.10.1 lib/ridley/host_connector/response.rb
ridley-0.11.0.rc1 lib/ridley/host_connector/response.rb
ridley-0.10.0 lib/ridley/host_connector/response.rb
ridley-0.10.0.rc3 lib/ridley/host_connector/response.rb
ridley-0.10.0.rc2 lib/ridley/host_connector/response.rb
ridley-0.10.0.rc1 lib/ridley/host_connector/response.rb