Module: CemAcpt::ImageBuilder::Exec
- Defined in:
- lib/cem_acpt/image_builder/exec.rb
Defined Under Namespace
Classes: Gcloud
Class Method Summary collapse
Class Method Details
.new_exec(config) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/cem_acpt/image_builder/exec.rb', line 10 def self.new_exec(config) executor = config.get('exec') || 'gcloud' case executor when 'gcloud' CemAcpt::ImageBuilder::Exec::Gcloud.new(config) else raise ArgumentError, "Unknown exec #{executor}" end end |