Sha256: 25e98fccf84934833df9c5452b763b1e9a03bf580c731c0fa27a8e76311ea4b7
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
module Microstatic class S3BucketCreator include UsesFog def initialize( aws_creds ) check_and_store_aws_creds(aws_creds) end def create( bucket_name ) connection.put_bucket( bucket_name ) connection.put_bucket_acl( bucket_name, 'public-read' ) connection.put_bucket_website( bucket_name, 'index.html', :key => '404.html' ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
microstatic-0.3.0 | lib/microstatic/s3_bucket_creator.rb |