mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add ready? method to aws VPC and Subnet models
This commit is contained in:
parent
8d1062b8bc
commit
3385aa6024
2 changed files with 9 additions and 0 deletions
|
@ -14,6 +14,10 @@ module Fog
|
||||||
attribute :availability_zone, :aliases => 'availabilityZone'
|
attribute :availability_zone, :aliases => 'availabilityZone'
|
||||||
attribute :tag_set, :aliases => 'tagSet'
|
attribute :tag_set, :aliases => 'tagSet'
|
||||||
|
|
||||||
|
def ready?
|
||||||
|
requires :state
|
||||||
|
state == 'available'
|
||||||
|
end
|
||||||
|
|
||||||
# Removes an existing subnet
|
# Removes an existing subnet
|
||||||
#
|
#
|
||||||
|
|
|
@ -20,6 +20,11 @@ module Fog
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ready?
|
||||||
|
requires :state
|
||||||
|
state == 'available'
|
||||||
|
end
|
||||||
|
|
||||||
# Removes an existing vpc
|
# Removes an existing vpc
|
||||||
#
|
#
|
||||||
# vpc.destroy
|
# vpc.destroy
|
||||||
|
|
Loading…
Add table
Reference in a new issue