module SwissAdmin::Commands
Public Class Methods
app_running?(pid)
click to toggle source
@todo move to another module Commands::Helpers??
# File lib/swiss_admin/cli/web_cli.rb, line 6 def self.app_running? pid pid = pid.to_i result = begin Process.kill(0, pid) :running rescue Errno::EPERM => e e.message rescue Errno::ESRCH => e :not_running rescue "Unable to determine status for #{pid} : #{$!}" end result end