Exception: WaitForIt::WaitForItTimeoutError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wait_for_it.rb

Instance Method Summary collapse

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(options = {})
  command = options[:command]
  input   = options[:input]
  timeout = options[:timeout]
  log     = options[:log]
  super "Running command: '#{ command }', waiting for '#{ input }' did not occur within #{ timeout } seconds:\n#{ log.read }"
end