Exception: WaitForIt::WaitForItTimeoutError
- Inherits:
-
StandardError
- Object
- StandardError
- WaitForIt::WaitForItTimeoutError
- Defined in:
- lib/wait_for_it.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ WaitForItTimeoutError
constructor
A new instance of WaitForItTimeoutError.
Constructor Details
#initialize(options = {}) ⇒ WaitForItTimeoutError
Returns a new instance of WaitForItTimeoutError.
10 11 12 13 14 15 16 |
# File 'lib/wait_for_it.rb', line 10 def initialize( = {}) command = [:command] input = [:input] timeout = [:timeout] log = [:log] super "Running command: '#{ command }', waiting for '#{ input }' did not occur within #{ timeout } seconds:\n#{ log.read }" end |