Class: Racker::Builders::Amazon
- Defined in:
- lib/racker/builders/amazon.rb
Overview
This is the Amazon builder
Instance Method Summary collapse
Methods inherited from Builder
Instance Method Details
#to_packer(name, config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/racker/builders/amazon.rb', line 8 def to_packer(name, config) log = Log4r::Logger['racker'] log.debug("Entering #{self.class}.#{__method__}") config = super(name, config) %w(ami_block_device_mappings ami_groups ami_product_codes ami_regions ami_users chroot_mounts copy_files launch_block_device_mappings security_group_ids).each do |key| if config.key? key log.info("Converting #{key} to packer value...") config[key] = convert_hash_to_packer_value(config[key]) end end log.debug("Leaving #{self.class}.#{__method__}") config end |