Sha256: bab896f07df731c9844245da97302cd143356d4749ab0b5c2a1e8f830ec302ae
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
require 'aruba' require 'aruba/spawn_process' require 'aruba/in_process' require 'shellwords' require 'stringio' class CustomMain def initialize(argv, stdin, stdout, stderr, kernel) @argv, @stdin, @stdout, @stderr, @kernel = argv, stdin, stdout, stderr, kernel end def execute! @stdout.puts(@argv.map(&:reverse).join(' ')) end end Before('@in-process') do Aruba::InProcess.main_class = CustomMain Aruba.process = Aruba::InProcess end After('~@in-process') do Aruba.process = Aruba::SpawnProcess end
Version data entries
3 entries across 2 versions & 2 rubygems