Skip to content

Instantly share code, notes, and snippets.

Avatar

Darren Terhune darrenterhune

View GitHub Profile
View aws_cf_invalidate.rake
require 'hmac-sha1'
require 'net/https'
require 'base64'
desc "Invalidate files from cloudfront distribution"
task :files, :filenames do |task, args|
CONFIG = YAML.load_file(File.join(RAILS_ROOT, 'config', 'amazon_s3.yml'))[RAILS_ENV]
s3_access = CONFIG['access_key_id']
You can’t perform that action at this time.