Sha256: a08d5b29fceea9f5c107771820f80468fd2c223d66463a113054327024313c58
Contents?: true
Size: 487 Bytes
Versions: 15
Compression:
Stored size: 487 Bytes
Contents
module Datapimp module Sync class CloudfrontDistribution include Datapimp::Logging attr_accessor :bucket def initialize(options={}) @bucket = options.fetch(:bucket) end def cloudfront @cloudfront ||= Datapimp::Sync.amazon.cdn.distributions.detect do |dist| dist.comment == bucket end end def method_missing(meth, *args, &block) cloudfront.send(meth, *args, &block) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems