Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
View read_parameters_from_aws.rb
require 'aws-sdk-ssm'
class AWSHelper
@@ssm_parameters = []
@@test_environment = nil
# Reads and stores Parameter Store values for a particular path.
def self.load_ssm_parameters(test_environment)
@@test_environment = test_environment
dennismclaugh /
Last active Apr 8, 2019
Short script that demonstrates how to save secrets up in AWS Parameter Store.
# This script will automatically add and update secrets in the AWS Parameter Store.
# Example: "./ test_environment.txt" will store the secrets at path /WebDriver_Tests/my_parameters
# Check if an input file was specified
if [ $# -eq 0 ] || [ ! -f $1 ]; then
echo "No test environment specified or config file not found. Example usage '$ tesT_environment.txt'"
exit 1
View store_file_in_s3
require 'aws-sdk-s3'
# Saves a file to an AWS S3 bucket.
def store_file_in_s3
region: 'us-east-1'
bucketname = 'my_s3_bucket'
dennismclaugh / dockerfile
Last active Jan 17, 2020
Dockerfile based on Alpine Linux complete with Ruby, Watir Webdriver, Shopify API, Chrome, and Firefox.
View dockerfile
FROM alpine:latest
# Point to specific Alpine Package repositories for Chromium and Firefox.
RUN apk update && apk upgrade \
&& echo @latest-stable >> /etc/apk/repositories \
&& echo @latest-stable >> /etc/apk/repositories \
&& echo @edge-testing >> /etc/apk/repositories \
&& echo @edge-main >> /etc/apk/repositories
# Install Ruby dev environment