Skip to content

Instantly share code, notes, and snippets.

@iHiD
Last active December 30, 2015 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iHiD/7805308 to your computer and use it in GitHub Desktop.
Save iHiD/7805308 to your computer and use it in GitHub Desktop.
manifest_creator.rb
cloudfront_url = "https://123123.cloudfront.com"
images_dir = "/users/12321/"
manifest_file_path = "/users/12321/manifest.json"
images = Dir["#{@processing_directory}/html/**/*.jpg"].map do |filename|
"#{cloudfront_url}/#{images_dir}/#{filename}"
end
delivery_data = {images: images}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment