s3_config 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3_config/bash/s3_config_wrapper.sh +7 -7
- data/lib/s3_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77d8f9634665600e9ea67306ec6e8065b1b76800
|
4
|
+
data.tar.gz: a3239966aff9490ac0d4af00c2bbecdcbc2c8ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29caeeb4802adbae0fab88b884121e92f8c61a65389b46dc6c7c8b1eb6761157d273bbd2833ba5915b73b327cc1af74b03d6724c11c8e518566cf40c26d85326
|
7
|
+
data.tar.gz: 4d0c1cf4842218b216a25ec386195f9e7ea056a41e0bef975f9e6aab3e8f506b44a5428f659e295255ec7bef5dec17a125816296b25208948446a6619395652d
|
@@ -1,16 +1,16 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
|
3
3
|
# Check that the environment variable has been set correctly
|
4
|
-
if [ -z "$
|
5
|
-
echo >&2 'error: missing
|
4
|
+
if [ -z "$S3_CONFIG_BUCKET" ]; then
|
5
|
+
echo >&2 'error: missing S3_CONFIG_BUCKET environment variable'
|
6
6
|
exit 1
|
7
7
|
fi
|
8
|
-
if [ -z "$
|
9
|
-
echo >&2 'error: missing
|
8
|
+
if [ -z "$S3_CONFIG_ENVIRONMENT" ]; then
|
9
|
+
echo >&2 'error: missing S3_CONFIG_ENVIRONMENT environment variable'
|
10
10
|
exit 1
|
11
11
|
fi
|
12
|
-
if [ -z "$
|
13
|
-
echo >&2 'error: missing
|
12
|
+
if [ -z "$S3_CONFIG_REVISION" ]; then
|
13
|
+
echo >&2 'error: missing S3_CONFIG_REVISION environment variable'
|
14
14
|
exit 1
|
15
15
|
fi
|
16
16
|
|
@@ -18,7 +18,7 @@ fi
|
|
18
18
|
function load_config {
|
19
19
|
local prefix=""
|
20
20
|
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
|
21
|
-
aws s3 cp s3://${
|
21
|
+
aws s3 cp s3://${S3_CONFIG_BUCKET}/${S3_CONFIG_ENVIRONMENT}/${S3_CONFIG_REVISION}.yml - |
|
22
22
|
sed -ne "s|^\($s\):|\1|" \
|
23
23
|
-e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \
|
24
24
|
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" |
|
data/lib/s3_config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zane Shannon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|