Module: Eaglenube::Synchronizer::AWS::LaunchTemplate::LaunchTemplateSyncMethods
- Defined in:
- lib/eaglenube/synchronizer/aws/launch_template.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::LaunchTemplate
Instance Method Details
#sync_resource(credential, region_code, &_block) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/eaglenube/synchronizer/aws/launch_template.rb', line 21 def sync_resource(credential, region_code, &_block) remote_launch_templates = describe_launch_templates(credential, region_code) remote_launch_templates.each do |remote_launch_template| , optional_attributes = yield(remote_launch_template) create_or_update(remote_launch_template, , **optional_attributes) end end |