Module: QB::IPC::STDIO

Defined in:
lib/qb/ipc/stdio.rb,
lib/qb/ipc/stdio/server.rb

Overview

Simple & shitty inter-process communication (IPC) system for passing standard-IO lines, intended and used to move them from Ansible module child processes up to the QB master process for display.

Defined Under Namespace

Classes: Client, Server

Class Method Summary collapse

Class Method Details

.path_env_var_name(name) ⇒ String

Get the ENV var name that will hold the socket path for a stream name - :in, :out or :err - when passed from parent to child processes.

Examples:

path_env_var_name :in
# => "QB_STDIO_IN"

Parameters:

  • name (Symbol)

Returns:

  • (String)


28
29
30
# File 'lib/qb/ipc/stdio.rb', line 28

def self.path_env_var_name name
  "QB_STDIO_#{ name.to_s.upcase }"
end