1
0
Fork 0
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:
Brian Nelson 2013-12-09 17:33:46 -08:00
parent 8d1062b8bc
commit 3385aa6024
2 changed files with 9 additions and 0 deletions

View file

@ -14,6 +14,10 @@ module Fog
attribute :availability_zone, :aliases => 'availabilityZone'
attribute :tag_set, :aliases => 'tagSet'
def ready?
requires :state
state == 'available'
end
# Removes an existing subnet
#

View file

@ -20,6 +20,11 @@ module Fog
super
end
def ready?
requires :state
state == 'available'
end
# Removes an existing vpc
#
# vpc.destroy