Module: CemAcpt::ImageBuilder
- Defined in:
- lib/cem_acpt/image_builder.rb,
lib/cem_acpt/image_builder/exec.rb,
lib/cem_acpt/image_builder/provision_commands.rb
Overview
This module contains the classes and methods for building test node images
Defined Under Namespace
Modules: Exec, ProvisionCommands Classes: TerraformBuilder
Class Method Summary collapse
Class Method Details
.build_images(config) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/cem_acpt/image_builder.rb', line 16 def self.build_images(config) include CemAcpt::Logging builder = TerraformBuilder.new(config) builder.run logger.info('CemAcpt::ImageBuilder') { "Image builder finished after #{builder.duration} seconds" } if builder.exit_code.zero? logger.info('CemAcpt::ImageBuilder') { 'Image builder finished successfully' } else logger.error('CemAcpt::ImageBuilder') { "Image builder finished with exit code #{builder.exit_code}" } end exit builder.exit_code end |