Module: Batchbase::Core::ClassMethods
- Defined in:
- lib/batchbase/core.rb
Instance Method Summary collapse
Instance Method Details
#env ⇒ Object
125 126 |
# File 'lib/batchbase/core.rb', line 125 def env end |
#is_there_process(pid) ⇒ Object
118 119 120 121 122 123 |
# File 'lib/batchbase/core.rb', line 118 def is_there_process(pid) pid = pid.to_i raise 'pid must be number' if pid == 0 process = Sys::ProcTable.ps(pid) process != nil && process.state == 'run' end |