Class: Racker::Builders::Builder
- Inherits:
-
Object
- Object
- Racker::Builders::Builder
- Includes:
- LogSupport
- Defined in:
- lib/racker/builders/builder.rb
Overview
This is the Builder base class
Direct Known Subclasses
Amazon, DigitalOcean, Docker, Google, Null, OpenStack, Parallels, QEMU, VMware, Virtualbox
Instance Method Summary collapse
Methods included from LogSupport
level=, log4r_level_for, logger, #logger
Instance Method Details
#convert_hash_to_packer_value(config) ⇒ Object
21 22 23 |
# File 'lib/racker/builders/builder.rb', line 21 def convert_hash_to_packer_value(config) config.kind_of?(Hash) ? config.values : config end |
#to_packer(name, config) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/racker/builders/builder.rb', line 10 def to_packer(name, config) logger.debug("Entering #{self.class}.#{__method__}") # Set the name of the builder logger.info("Setting config name to #{name}") config['name'] = name logger.debug("Leaving #{self.class}.#{__method__}") config end |