Top Level Namespace

Defined Under Namespace

Modules: Twenty

Instance Method Summary collapse

Instance Method Details

#spawn(exec) ⇒ Object



3
4
5
6
# File 'lib/twenty/cli/libexec.rb', line 3

def spawn(exec, *)
  libexec_dir = File.realpath(File.join(__dir__, "..", "..", "..", "libexec", "twenty"))
  Process.spawn(File.join(libexec_dir, exec), *)
end

#wait(pid) ⇒ Object



8
9
10
11
12
# File 'lib/twenty/cli/libexec.rb', line 8

def wait(pid)
  Process.wait(pid)
rescue Interrupt
  retry
end