module EbDeployer class ResourceStacks def initialize(resources, cf_driver, skip_provision, tags) @resources = resources @cf_driver = cf_driver @skip_provision = skip_provision @tags = (tags || {}).map { |k, v| { key: k, value: v } } end def provision(stack_name) provisioner = CloudFormationProvisioner.new(stack_name, @cf_driver) if @resources provisioner.provision(@resources, @tags) unless @skip_provision provisioner.transform_outputs(@resources) else [] end end end end