Module PhusionPassenger::Utils
In: lib/phusion_passenger/utils/native_support_utils.rb
lib/phusion_passenger/utils/file_system_watcher.rb
lib/phusion_passenger/utils/terminal_choice_menu.rb
lib/phusion_passenger/utils/ansi_colors.rb
lib/phusion_passenger/utils/download.rb
lib/phusion_passenger/utils/tmpdir.rb
lib/phusion_passenger/utils/lock.rb
lib/phusion_passenger/utils/hosts_file_parser.rb
lib/phusion_passenger/utils/tee_input.rb
lib/phusion_passenger/utils/json.rb
lib/phusion_passenger/utils/unseekable_socket.rb
lib/phusion_passenger/utils/tmpio.rb
lib/phusion_passenger/utils.rb

Utility functions.

Methods

Classes and Modules

Module PhusionPassenger::Utils::AnsiColors
Module PhusionPassenger::Utils::Download
Module PhusionPassenger::Utils::NativeSupportUtils
Class PhusionPassenger::Utils::AnsiColorsPrinter
Class PhusionPassenger::Utils::FileSystemWatcher
Class PhusionPassenger::Utils::GeneratorTest
Class PhusionPassenger::Utils::HostsFileParser
Class PhusionPassenger::Utils::JSON
Class PhusionPassenger::Utils::Lock
Class PhusionPassenger::Utils::ParserTest
Class PhusionPassenger::Utils::TeeInput
Class PhusionPassenger::Utils::TerminalChoiceMenu
Class PhusionPassenger::Utils::TmpIO
Class PhusionPassenger::Utils::UnseekableSocket

Constants

FileSystemWatcher = NativeSupport::FileSystemWatcher

Public Class methods

Like Dir.mktmpdir, but creates shorter filenames.

Protected Class methods

Returns the directory in which to store Phusion Passenger-specific temporary files. If create is true, then this method creates the directory if it doesn‘t exist.

Public Instance methods

Generate a long, cryptographically secure random ID string, which is also a valid filename.

Returns a string which reports the backtraces for all threads, or if that‘s not supported the backtrace for the current thread.

Print the given exception, including the stack trace, to STDERR.

current_location is a string which describes where the code is currently at. Usually the current class name will be enough.

Checks whether the given process exists.

Protected Instance methods

[Validate]