Sha256: 2d40480357c46362d42b0eac96259d96d1842c7a4fcf123a025338223c40fb32

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
man_eb_deployer-0.8.0 lib/eb_deployer/resource_stacks.rb
eb_deployer_updated-0.8.1 lib/eb_deployer/resource_stacks.rb
eb_deployer_updated-0.8.0 lib/eb_deployer/resource_stacks.rb