Sha256: 13453b84e477937cee40284e3444303dabd0bb341a5fe8d16120620da1eaab69

Contents?: true

Size: 450 Bytes

Versions: 31

Compression:

Stored size: 450 Bytes

Contents

module Jekyll
  module Cloudfront
    class Invalidator
      def self.invalidate(
        aws_key, aws_secret, s3_bucket_name, cloudfront_distribution_id)
        bucket = AWS::S3::Bucket.find(s3_bucket_name)
        s3_object_keys = bucket.objects.map { |f| f.key }
        CloudfrontS3Invalidator::CloudfrontClient.new(
          aws_key, aws_secret, cloudfront_distribution_id).invalidate(
            s3_object_keys)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
jekyll-s3-yearofmoo-0.0.14 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.13 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.12 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.11 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.10 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.9 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.8 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.7 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.6 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.5 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.4 lib/cloudfront/invalidator.rb