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
Methods included from LogSupport
level=, log4r_level_for, logger, #logger
Instance Method Details
#to_packer(name, config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/racker/builders/amazon.rb', line 8 def to_packer(name, config) logger.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 logger.info("Converting #{key} to packer value...") config[key] = convert_hash_to_packer_value(config[key]) end end logger.debug("Leaving #{self.class}.#{__method__}") config end |