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.35 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.33 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.32 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.31 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.30 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.29 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.28 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.27 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.26 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.25 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.24 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.23 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.22 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.21 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.20 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.19 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.18 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.17 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.16 lib/cloudfront/invalidator.rb
jekyll-s3-yearofmoo-0.0.15 lib/cloudfront/invalidator.rb