Sha256: c7a65960fda8fd78ded3d22495af90f4dc99d1492c7fd91001a5defd7cde8b8a
Contents?: true
Size: 532 Bytes
Versions: 6
Compression:
Stored size: 532 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{|arg| arg.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
6 entries across 6 versions & 2 rubygems