Method: Fog::Compute::Ninefold::Server#ready?
- Defined in:
- lib/fog/ninefold/models/compute/server.rb
#ready? ⇒ Boolean
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/fog/ninefold/models/compute/server.rb', line 118 def ready? if jobid # we do this by polling the last job id status. res = connection.query_async_job_result(:jobid => jobid) if res['jobstatus'] == 0 false else # update with new values. merge_attributes(res['jobresult']['virtualmachine']) true end else # No running job, we are ready. Refresh data. reload true end end |