class Process::Group::Command

Attributes

options[R]
pid[R]

Public Class Methods

new(foreground: false, **options) click to toggle source
# File lib/process/group.rb, line 34
def initialize(foreground: false, **options)
        @options = options
        @foreground = foreground
        
        @fiber = Fiber.current
        @pid = nil
end

Public Instance Methods

foreground?() click to toggle source
# File lib/process/group.rb, line 46
def foreground?
        @foreground
end
kill(signal = :INT) click to toggle source
# File lib/process/group.rb, line 54
def kill(signal = :INT)
        Process.kill(signal, @pid)
end
resume(*arguments) click to toggle source
# File lib/process/group.rb, line 50
def resume(*arguments)
        @fiber.resume(*arguments)
end