Sha256: 45dabef852b3113d4ff89c39d57ee2b23988a2cf83979da16da7d45a60446823

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 Bytes

Contents

# encoding: utf-8
require "belzebuth/wait_condition/base"

module Belzebuth module WaitCondition
  class Timed < Base
    def initialize(time)
      @time = time
    end

    def start(process)
      @started_at = Time.now
    end

    def call(process)
      Time.now - @started_at > @time
    end

    def sleep_time_between_condition(process)
      0
    end
  end
end end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
belzebuth-0.2.3 lib/belzebuth/wait_condition/timed.rb
belzebuth-0.2.2 lib/belzebuth/wait_condition/timed.rb
belzebuth-0.2.1 lib/belzebuth/wait_condition/timed.rb
belzebuth-0.2.0 lib/belzebuth/wait_condition/timed.rb
belzebuth-0.1.0 lib/belzebuth/wait_condition/timed.rb