1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Ability to track vApp level status of readiness

This commit is contained in:
Chirag Jog 2013-02-02 12:10:10 +05:30
parent 6b7ae788cd
commit 7267a739f8

View file

@ -37,6 +37,17 @@ module Fog
:href => href
)
end
def ready?
reload_status # always ensure we have the correct status
status != '0'
end
private
def reload_status
vapp = service.get_vapp(href)
self.status = vapp.status
end
end
end
end