Method: Fog::Vcloud::Compute::Server#ready?
- Defined in:
- lib/fog/vcloud/models/compute/server.rb
permalink #ready? ⇒ Boolean
51 52 53 54 55 |
# File 'lib/fog/vcloud/models/compute/server.rb', line 51 def ready? reload_status # always ensure we have the correct status running_tasks = self.tasks && self.tasks.flatten.any? {|ti| ti.kind_of?(Hash) && ti[:status] == 'running' } status != '0' && !running_tasks # 0 is provisioning, and no running tasks end |