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:
parent
cb8074c00e
commit
fc7345886a
2 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@ module Fog
|
|||
true
|
||||
end
|
||||
|
||||
def ready?
|
||||
self.status == 'ACTIVE'
|
||||
end
|
||||
|
||||
def save
|
||||
requires :network_id
|
||||
identity ? update : create
|
||||
|
|
|
@ -39,6 +39,10 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
def ready?
|
||||
self.status == 'ACTIVE'
|
||||
end
|
||||
|
||||
def save
|
||||
identity ? update : create
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue