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-1.1.1 lib/ridley/host_connector/response.rb
ridley-1.1.0 lib/ridley/host_connector/response.rb
ridley-1.0.2 lib/ridley/host_connector/response.rb
ridley-1.0.1 lib/ridley/host_connector/response.rb
ridley-1.0.0 lib/ridley/host_connector/response.rb
ridley-1.0.0.rc3 lib/ridley/host_connector/response.rb