Module: Eaglenube::Synchronizer::AWS::ECS::ECSSyncMethods
- Includes:
- ApiWrapper::AWS::ECS, CloudObjectMapper::AWS
- Defined in:
- lib/eaglenube/synchronizer/aws/ecs.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::ECS
Instance Method Details
#sync_resource(credential, region_code, &_block) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/eaglenube/synchronizer/aws/ecs.rb', line 21 def sync_resource(credential, region_code, &_block) remote_ecs_clusters = describe_ecs_clusters(credential, region_code) remote_ecs_clusters.each do |remote_cluster| , optional_attributes = yield(remote_cluster) create_or_update(remote_cluster, , **optional_attributes) end end |