Class: DaptivChefCI::BaseBoxBuilderFactory
- Inherits:
-
Object
- Object
- DaptivChefCI::BaseBoxBuilderFactory
- Defined in:
- lib/daptiv-chef-ci/basebox_builder_factory.rb
Overview
Abstract factory to produce base box builder instances based off the specified provider
Instance Method Summary collapse
-
#create(shell, provider, base_dir) ⇒ Object
Creates a new base box builder instance.
Instance Method Details
#create(shell, provider, base_dir) ⇒ Object
Creates a new base box builder instance
12 13 14 15 16 |
# File 'lib/daptiv-chef-ci/basebox_builder_factory.rb', line 12 def create(shell, provider, base_dir) provider == :vmware_fusion ? DaptivChefCI::VMwareBaseBoxBuilder.new(base_dir) : DaptivChefCI::VirtualBoxBaseBoxBuilder.new(base_dir, shell) end |