# File lib/rbvmomi/vim/Task.rb, line 5 def wait_for_completion wait_until('info.state') { %w(success error).member? info.state } case info.state when 'success' info.result when 'error' raise info.error end end