Class: Racker::Builders::Builder
- Inherits:
-
Object
- Object
- Racker::Builders::Builder
- 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
Instance Method Details
#convert_hash_to_packer_value(config) ⇒ Object
20 21 22 |
# File 'lib/racker/builders/builder.rb', line 20 def convert_hash_to_packer_value(config) config.kind_of?(Hash) ? config.values : config end |
#to_packer(name, config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/racker/builders/builder.rb', line 8 def to_packer(name, config) log = Log4r::Logger['racker'] log.debug("Entering #{self.class}.#{__method__}") # Set the name of the builder log.info("Setting config name to #{name}") config['name'] = name log.debug("Leaving #{self.class}.#{__method__}") config end |