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