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