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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65f58b167424cf5abb0cfa852427a47f81b0b919
4
- data.tar.gz: e93ebfd953aa21da62caa1e227a70aaec5603704
3
+ metadata.gz: 77d8f9634665600e9ea67306ec6e8065b1b76800
4
+ data.tar.gz: a3239966aff9490ac0d4af00c2bbecdcbc2c8ad2
5
5
  SHA512:
6
- metadata.gz: 169c046c5b0758cfe512c6a4f2da9f9ae95cf122410e6692590964f5287a1772d5e8cb3e85fa89a88f8fd3c4e3e76cca5fe622f133b96606feb61dd53660c508
7
- data.tar.gz: db7838c94204d2c53e3df4868c1e1da085705d9a6a90a84ab1f49b9d305c98b5dc12772aa21dc7db2688621285b62d0c8c6f34604ea3c64c8b60ca4e6b7fcbce
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 "$SECRETS_BUCKET_NAME" ]; then
5
- echo >&2 'error: missing SECRETS_BUCKET_NAME environment variable'
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 "$SECRETS_ENVIRONMENT" ]; then
9
- echo >&2 'error: missing SECRETS_ENVIRONMENT environment variable'
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 "$SECRETS_VERSION" ]; then
13
- echo >&2 'error: missing SECRETS_VERSION environment variable'
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://${SECRETS_BUCKET_NAME}/${SECRETS_ENVIRONMENT}/${SECRETS_VERSION}.yml - |
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" |
@@ -1,3 +1,3 @@
1
1
  module S3Config
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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-17 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk