Sha256: de7e26d82d4e8cf54bbb7b7313212f1aefe4f9929c6335d172fbd263a816dfe6
Contents?: true
Size: 391 Bytes
Versions: 20
Compression:
Stored size: 391 Bytes
Contents
module BigBrother class ShellExecutor def invoke(command) BigBrother.logger.info("Running command: #{command.inspect}") _system(command) end def _system(command) current_fiber = Fiber.current EventMachine.system(command) do |output, status| current_fiber.resume(output, status.exitstatus) end return Fiber.yield end end end
Version data entries
20 entries across 20 versions & 1 rubygems