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

[hp|network] Add ready? method for port and router model.

This commit is contained in:
Rupak Ganguly 2013-04-15 17:45:01 -04:00
parent cb8074c00e
commit fc7345886a
2 changed files with 8 additions and 0 deletions

View file

@ -24,6 +24,10 @@ module Fog
true
end
def ready?
self.status == 'ACTIVE'
end
def save
requires :network_id
identity ? update : create

View file

@ -39,6 +39,10 @@ module Fog
end
end
def ready?
self.status == 'ACTIVE'
end
def save
identity ? update : create
end