class ProcessExecuter::Destinations::DestinationBase
@api private
classes that handle different types of output redirection.
Provides the common interface and functionality for all destination
Base class for all destination handlers
def self.compatible_with_monitored_pipe? = true
-
(Boolean)-
def self.compatible_with_monitored_pipe? = true
def self.handles?(destination)
-
(NotImplementedError)- if the subclass doesn't implement this method
Returns:
-
(Boolean)- true if this class can handle the destination
Parameters:
-
destination(Object) -- the destination to check
def self.handles?(destination) raise NotImplementedError end
def close; end
-
(void)-
def close; end
def compatible_with_monitored_pipe?
-
(Boolean)-
def compatible_with_monitored_pipe? self.class.compatible_with_monitored_pipe? end
def initialize(destination)
-
destination(Object) -- the destination to write to
def initialize(destination) @destination = destination end
def write(_data)
-
(Integer)- the number of bytes written
Parameters:
-
_data(String) -- the data to write
def write(_data) 0 end