class Process::Group::Spawn
Executes a command using Process.spawn with the given arguments and options.
Attributes
arguments[R]
Public Class Methods
new(arguments, **options)
click to toggle source
Calls superclass method
Process::Group::Command::new
# File lib/process/group.rb, line 61 def initialize(arguments, **options) @arguments = arguments super(**options) end
Public Instance Methods
call(**options)
click to toggle source
# File lib/process/group.rb, line 69 def call(**options) options = @options.merge(options) @pid = Process.spawn(*@arguments, **options) end