Module: EventMachine::SystemCommand::PipeHandler::ClassMethods

Defined in:
lib/em-systemcommand/pipe_handler.rb

Instance Method Summary collapse

Instance Method Details

#pipe_handler(name, klass) ⇒ Object



17
18
19
# File 'lib/em-systemcommand/pipe_handler.rb', line 17

def pipe_handler name, klass
  pipe_handlers[name] = klass
end

#pipe_handler_class(name) ⇒ Object



21
22
23
# File 'lib/em-systemcommand/pipe_handler.rb', line 21

def pipe_handler_class name
  pipe_handlers[name]
end

#pipe_handlersObject



25
26
27
28
29
30
31
# File 'lib/em-systemcommand/pipe_handler.rb', line 25

def pipe_handlers
  @pipe_handlers ||= {
    stdin:  EM::SystemCommand::Pipe,
    stdout: EM::SystemCommand::Pipe,
    stderr: EM::SystemCommand::Pipe
  }
end