This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# decompress gzip-ed VCR fixtures | |
require 'zlib' | |
require 'psych' | |
Dir.glob('spec/fixtures/vcr_cassettes/**/*.yml').each do |filename| | |
data = Psych.load_file(filename) | |
changed = false | |
data['http_interactions'].each do |interaction| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sync files from webpacker manifest.json to S3 asset bucket. | |
# Based on asset_sync but much simplified for this case. | |
# | |
# Requirements | |
# | |
# Add fog to Gemfile. | |
# | |
# Environment variables: | |
# - AWS_S3_ASSETS_BUCKET_NAME | |
# - AWS_S3_REGION |
OlderNewer