class Bluepill::ProcessConditions::RunningTime
Public Class Methods
new(options = {})
click to toggle source
# File lib/bluepill/process_conditions/running_time.rb, line 4 def initialize(options = {}) @below = options[:below] end
Public Instance Methods
check(value)
click to toggle source
# File lib/bluepill/process_conditions/running_time.rb, line 12 def check(value) value < @below end
run(pid, _include_children)
click to toggle source
# File lib/bluepill/process_conditions/running_time.rb, line 8 def run(pid, _include_children) System.running_time(pid) end