class ProcessExecuter::Destinations::MonitoredPipe

@api private
Handles monitored pipes

def self.handles?(destination)

Returns:
  • (Boolean) - true if destination is a ProcessExecuter::MonitoredPipe

Parameters:
  • destination (Object) -- the destination to check
def self.handles?(destination)
  destination.is_a? ProcessExecuter::MonitoredPipe
end

def close

Returns:
  • (void) -
def close
  destination.close if destination.state == :open
end

def write(data)

Returns:
  • (Object) - the return value of the pipe's write method

Parameters:
  • data (String) -- the data to write
def write(data)
  super
  destination.write data
end