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/vhost.rb,
lib/aptible/cli/helpers/system.rb,
lib/aptible/cli/helpers/tunnel.rb,
lib/aptible/cli/helpers/database.rb,
lib/aptible/cli/helpers/log_drain.rb,
lib/aptible/cli/helpers/operation.rb,
lib/aptible/cli/helpers/config_path.rb,
lib/aptible/cli/helpers/environment.rb,
lib/aptible/cli/helpers/maintenance.rb,
lib/aptible/cli/helpers/date_helpers.rb,
lib/aptible/cli/helpers/metric_drain.rb,
lib/aptible/cli/helpers/security_key.rb,
lib/aptible/cli/helpers/s3_log_helpers.rb,
lib/aptible/cli/helpers/app_or_database.rb,
lib/aptible/cli/helpers/vhost/option_set_builder.rb

Defined Under Namespace

Modules: App, AppOrDatabase, ConfigPath, Database, DateHelpers, Environment, LogDrain, Maintenance, MetricDrain, Operation, S3LogHelpers, SecurityKey, Ssh, System, Token, Vhost Classes: Tunnel

Constant Summary collapse

STOP_SIGNAL =
if Gem.win_platform?
  :SIGBRK
else
  :SIGHUP
end
STOP_TIMEOUT =
5
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