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

Utility functions.

Methods

Classes and Modules

Module PhusionPassenger::Utils::AnsiColors
Class PhusionPassenger::Utils::FileSystemWatcher
Class PhusionPassenger::Utils::GeneratorTest
Class PhusionPassenger::Utils::HostsFileParser
Class PhusionPassenger::Utils::JSON
Class PhusionPassenger::Utils::ParserTest
Class PhusionPassenger::Utils::TeeInput
Class PhusionPassenger::Utils::TmpIO
Class PhusionPassenger::Utils::UnseekableSocket

Constants

FileSystemWatcher = NativeSupport::FileSystemWatcher
NULL = "\0".freeze

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.

Split the given string into an hash. Keys and values are obtained by splitting the string using the null character as the delimitor.

Protected Instance methods

[Validate]