Module: Eaglenube::Synchronizer::AWS::Subnet::SubnetSyncMethods
- Includes:
- ApiWrapper::AWS::Subnet, CloudObjectMapper::AWS
- Defined in:
- lib/eaglenube/synchronizer/aws/subnet.rb
Instance Method Summary collapse
Methods included from CloudObjectMapper::AWS
#cloud_obj_mapper, #cloud_obj_mapper_yml, #parse_provider_data
Methods included from ApiWrapper::AWS::Subnet
Instance Method Details
#sync_resource(credential, region_code, &_block) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/eaglenube/synchronizer/aws/subnet.rb', line 20 def sync_resource(credential, region_code, &_block) remote_subnets = describe_subnets(credential, region_code) remote_subnets.each do |remote_subnet| , optional_attributes = yield(remote_subnet) create_or_update(remote_subnet, , **optional_attributes) end end |