Method: Bluepill::ProcessConditions::FileTime#run

Defined in:
lib/bluepill/process_conditions/file_time.rb

#run(pid, include_children) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/bluepill/process_conditions/file_time.rb', line 10

def run(pid, include_children)
  if File.exists?(@filename)
    Time.now()-File::mtime(@filename)
  else
    nil
  end
rescue
  $!
end