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