Sha256: a8ab80bc3ddd0c861dc3643e96482b2e95a91595e0920006ca87f8c4172738bb
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
#! /usr/bin/env ruby require "cloud_shaped" require "yaml" class BucketMaker def initialize(n_buckets = 1) @n_buckets = n_buckets end def template CloudShaped.template do |t| 1.upto(@n_buckets) do |i| t.def_resource "bucket#{i}", "AWS::S3::Bucket" do |b| b["BucketName"] = "my-bucket-#{i}" end end end end end puts YAML.dump(BucketMaker.new(3).template)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloud_shaped-1.1.0 | examples/buckets.rb |