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

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/aruba-0.6.1/features/support/custom_main.rb
aruba-0.6.1 features/support/custom_main.rb
aruba-0.6.0 features/support/custom_main.rb
aruba-0.5.4 features/support/custom_main.rb
aruba-0.5.3 features/support/custom_main.rb
aruba-0.5.2 features/support/custom_main.rb