Module: Eaglenube::Synchronizer::AWS::SecurityGroup::SecurityGroupSyncMethods
- Defined in:
- lib/eaglenube/synchronizer/aws/security_group.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::SecurityGroup
Methods included from AWSAgent
get_acm_agent, get_auto_scaling_agent, get_cloud_watch_agent, get_compute_agent, get_ecs_agent, get_elb_agent, get_iam_agent, get_kms_agent, get_rds_agent, get_redshift_agent, get_s3_agent
Methods included from AWSCredentialBuilder
Instance Method Details
#sync_resource(credential, region_code) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/eaglenube/synchronizer/aws/security_group.rb', line 19 def sync_resource(credential, region_code) remote_security_groups = describe_security_groups(credential, region_code) remote_security_groups.each do |remote_security_group| , optional_attributes = yield(remote_security_group) create_or_update(remote_security_group, , **optional_attributes) end end |