Class: Belzebuth::WaitCondition::FileExist
- Defined in:
- lib/belzebuth/wait_condition/file_exist.rb
Instance Method Summary collapse
- #call(process) ⇒ Object
-
#initialize(file) ⇒ FileExist
constructor
A new instance of FileExist.
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 |