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

Version Path
ridley-connectors-2.4.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.3.1 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.3.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.2.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.1.2 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.1.1 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.1.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.0.1 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.0.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-2.0.0.rc1 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.7.1 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.7.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.6.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.5.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.4.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.3.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.2.1 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.2.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.1.0 lib/ridley-connectors/host_connector/response.rb
ridley-connectors-1.0.1 lib/ridley-connectors/host_connector/response.rb