Module: CemAcpt::Provision
- Includes:
- Logging
- Defined in:
- lib/cem_acpt/provision.rb,
lib/cem_acpt/provision/terraform.rb,
lib/cem_acpt/provision/terraform/linux.rb,
lib/cem_acpt/provision/terraform/os_data.rb,
lib/cem_acpt/provision/terraform/windows.rb,
lib/cem_acpt/provision/terraform/terraform_cmd.rb
Defined Under Namespace
Classes: Linux, OsData, Terraform, TerraformCmd, Windows
Constant Summary
Constants included from Logging
Class Method Summary collapse
Methods included from Logging
current_log_config, #current_log_config, current_log_format, #current_log_format, #current_log_level, current_log_level, included, #logger, logger, new_log_config, #new_log_config, new_log_formatter, #new_log_formatter, #new_log_level, new_log_level, #new_logger, new_logger, verbose?, #verbose?
Class Method Details
.new_provisioner(config, provision_data) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/cem_acpt/provision.rb', line 10 def self.new_provisioner(config, provision_data) case config.get('provisioner') when 'terraform' logger.debug('CemAcpt::Provision') { 'Using Terraform provisioner' } CemAcpt::Provision::Terraform.new(config, provision_data) else raise ArgumentError, "Unknown provisioner #{config.get('provisioner')}" end end |