Module: Aptible::CLI::Helpers

Defined in:
lib/aptible/cli/helpers/app.rb,
lib/aptible/cli/helpers/ssh.rb,
lib/aptible/cli/helpers/token.rb,
lib/aptible/cli/helpers/tunnel.rb,
lib/aptible/cli/helpers/database.rb,
lib/aptible/cli/helpers/operation.rb,
lib/aptible/cli/helpers/environment.rb

Defined Under Namespace

Modules: App, Database, Environment, Operation, Ssh, Token Classes: Tunnel

Constant Summary collapse

STOP_SIGNAL =
if Gem.win_platform?
  :SIGBRK
else
  :SIGHUP
end
SPAWN_OPTS =

The :new_pgroup key specifies the CREATE_NEW_PROCESS_GROUP flag for CreateProcessW() in the Windows API. This is a Windows only option. true means the new process is the root process of the new process group. This flag is necessary to be able to signal the subprocess on Windows.

if Gem.win_platform?
  { new_pgroup: true }
else
  {}
end