mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
7f25b8f5fb
commit
e673bbf77b
2 changed files with 2 additions and 3 deletions
|
@ -2,9 +2,8 @@
|
||||||
|
|
||||||
module Spec
|
module Spec
|
||||||
class CommandExecution
|
class CommandExecution
|
||||||
def initialize(command, working_directory:, timeout:)
|
def initialize(command, timeout:)
|
||||||
@command = command
|
@command = command
|
||||||
@working_directory = working_directory
|
|
||||||
@timeout = timeout
|
@timeout = timeout
|
||||||
@original_stdout = String.new
|
@original_stdout = String.new
|
||||||
@original_stderr = String.new
|
@original_stderr = String.new
|
||||||
|
|
|
@ -38,7 +38,7 @@ module Spec
|
||||||
dir = options[:dir]
|
dir = options[:dir]
|
||||||
env = options[:env] || {}
|
env = options[:env] || {}
|
||||||
|
|
||||||
command_execution = CommandExecution.new(cmd.to_s, working_directory: dir, timeout: options[:timeout] || 60)
|
command_execution = CommandExecution.new(cmd.to_s, timeout: options[:timeout] || 60)
|
||||||
|
|
||||||
require "open3"
|
require "open3"
|
||||||
require "shellwords"
|
require "shellwords"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue