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

Returns:
  • (Boolean) -
def self.compatible_with_monitored_pipe? = true

def self.handles?(destination)

Raises:
  • (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

Returns:
  • (void) -
def close; end

def compatible_with_monitored_pipe?

Returns:
  • (Boolean) -
def compatible_with_monitored_pipe?
  self.class.compatible_with_monitored_pipe?
end

def initialize(destination)

Parameters:
  • destination (Object) -- the destination to write to
def initialize(destination)
  @destination = destination
end

def write(_data)

Returns:
  • (Integer) - the number of bytes written

Parameters:
  • _data (String) -- the data to write
def write(_data)
  0
end