Class: Belzebuth::WaitCondition::FileExist

Inherits:
Base
  • Object
show all
Defined in:
lib/belzebuth/wait_condition/file_exist.rb

Instance Method Summary collapse

Methods inherited from Base

#complete, #sleep_time_between_condition, #start

Constructor Details

#initialize(file) ⇒ FileExist

Returns a new instance of FileExist.



5
6
7
# File 'lib/belzebuth/wait_condition/file_exist.rb', line 5

def initialize(file)
  @file = file
end

Instance Method Details

#call(process) ⇒ Object



9
10
11
# File 'lib/belzebuth/wait_condition/file_exist.rb', line 9

def call(process)
  File.exist?(file)
end