class Belzebuth::WaitCondition::Timed
Public Class Methods
new(time)
click to toggle source
# File lib/belzebuth/wait_condition/timed.rb, line 6 def initialize(time) @time = time end
Public Instance Methods
call(process)
click to toggle source
# File lib/belzebuth/wait_condition/timed.rb, line 14 def call(process) Time.now - @started_at > @time end
sleep_time_between_condition(process)
click to toggle source
# File lib/belzebuth/wait_condition/timed.rb, line 18 def sleep_time_between_condition(process) 0 end
start(process)
click to toggle source
# File lib/belzebuth/wait_condition/timed.rb, line 10 def start(process) @started_at = Time.now end