Class/Module Index [+]

Quicksearch

PhusionPassenger::AdminTools

Public Class Methods

process_is_alive?(pid) click to toggle source
# File lib/phusion_passenger/admin_tools.rb, line 36
def self.process_is_alive?(pid)
        begin
                Process.kill(0, pid)
                return true
        rescue Errno::ESRCH
                return false
        rescue SystemCallError => e
                return true
        end
end
tmpdir() click to toggle source
# File lib/phusion_passenger/admin_tools.rb, line 27
def self.tmpdir
        ["PASSENGER_TEMP_DIR", "PASSENGER_TMPDIR"].each do |name|
                if ENV.has_key?(name) && !ENV[name].empty?
                        return ENV[name]
                end
        end
        return "/tmp"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.