Sha256: 719e3d428dfd587dbd2d89b8c7b156dc2970cd193a23c725fa43e9dac5c85e2e
Contents?: true
Size: 501 Bytes
Versions: 15
Compression:
Stored size: 501 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 && cloudfront.send(meth, *args, &block) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems