mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[hp|network] Add a ready? method to the network model.
This commit is contained in:
parent
edb5bdc1b7
commit
9bc342f991
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ module Fog
|
|||
true
|
||||
end
|
||||
|
||||
def ready?
|
||||
self.status == 'ACTIVE'
|
||||
end
|
||||
|
||||
def save
|
||||
identity ? update : create
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue