class Producer::Core::Testing::ArubaProgramWrapper
Public Class Methods
new(argv, stdin = $stdin, stdout = $stdout, stderr = $stderr, kernel = Kernel)
click to toggle source
# File lib/producer/core/testing/aruba_program_wrapper.rb, line 5 def initialize argv, stdin = $stdin, stdout = $stdout, stderr = $stderr, kernel = Kernel @argv = argv @stdin = stdin @stdout = stdout @stderr = stderr @kernel = kernel end
Public Instance Methods
execute!()
click to toggle source
# File lib/producer/core/testing/aruba_program_wrapper.rb, line 14 def execute! Producer::Core::CLI.run!( @argv.dup, stdin: @stdin, stdout: @stdout, stderr: @stderr ) rescue SystemExit => e @kernel.exit e.status end