#!/bin/bash

OLDPATH=$(pwd)
cd scripts/refresh_name_layers
bundle install
rm refresh_name_layers.zip
zip -r refresh_name_layers.zip refresh_name_layers.rb vendor
aws lambda update-function-code \
    --function-name NameRefresher \
    --zip-file fileb://refresh_name_layers.zip
cd $OLDPATH