Add ready? to server class

This commit is contained in:
dJason 2014-02-10 10:54:14 -07:00
parent 95aad91fba
commit c990effd49
1 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,10 @@ module Fog
service.stop_server(identity)
end
def ready?
status == "running"
end
def open_vnc
requires :identity
service.open_vnc(identity)
@ -205,4 +209,4 @@ module Fog
end
end
end
end
end