mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Openstack|Volumes] available? check method
available? simply returns whether the volume is being used or its available. This is convenient for applications using the Fog API to check if they can use a Volume by calling ```openstack.volumes.select(&:available)``` Renamed to ready?
This commit is contained in:
parent
41072e9f7d
commit
7ba3f79224
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ module Fog
|
|||
true
|
||||
end
|
||||
|
||||
def ready?
|
||||
status == 'available'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue