forger 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +15 -1
- data/lib/forger/script/upload.rb +1 -1
- data/lib/forger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6401d2b3074b193b1431144dd3e6cbe7177625d9e715de4ad8019aeea09c349a
|
|
4
|
+
data.tar.gz: 7cb781ddeca6cd0feffceb2cf0e8793b8b724b6fd0fd9640d71b9a6fc1b3bafd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b398774cdaad5a23e82f5f61e4d0bff62a632e14d69d0a8d7d99f331801524e4d50d79c20f3afcc76102b5ccd3d29c5063a480851d1691c6bc25d629f1e8f829
|
|
7
|
+
data.tar.gz: 71369dcaca32ceae5a4051ac3040d7be3fdc300262e5b39f4fd1657b3fd27df7193aaac27c7c2fe33538789105edbc0ffc45a57c55e450bf9fbbc397f1a9e9d0
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [1.5.4]
|
|
7
|
+
- rename FORGER_S3_ENDPOINT env variable setting
|
|
8
|
+
|
|
6
9
|
## [1.5.3]
|
|
7
10
|
- Merge pull request #9 from tongueroo/erb-support-for-config-env-files
|
|
8
11
|
- ERB support for config env files
|
data/README.md
CHANGED
|
@@ -195,7 +195,21 @@ This will run `/path/to/my/script.sh` as a shelled out command before the `run_i
|
|
|
195
195
|
|
|
196
196
|
## Dotenv File Support
|
|
197
197
|
|
|
198
|
-
You can set and configure environment variables in `.env*` files. Examples of this are in the [example](docs/example) project.
|
|
198
|
+
You can set and configure environment variables in `.env*` files. Examples of this are in the [example](docs/example) project. The env files are loaded in this order of precedence.
|
|
199
|
+
|
|
200
|
+
1. .env.[FORGER_ENV].local
|
|
201
|
+
2. .env.local
|
|
202
|
+
3. .env.[FORGER_ENV]
|
|
203
|
+
4. .env
|
|
204
|
+
|
|
205
|
+
An concrete example, `FORGER_ENV=development` (development is the default)
|
|
206
|
+
|
|
207
|
+
1. .env.development.local
|
|
208
|
+
2. .env.local
|
|
209
|
+
3. .env.development
|
|
210
|
+
4. .env
|
|
211
|
+
|
|
212
|
+
You are able to reference these values in the `config/[FORGER_ENV].yml` files with ERB.
|
|
199
213
|
|
|
200
214
|
## AMI Creation
|
|
201
215
|
|
data/lib/forger/script/upload.rb
CHANGED
|
@@ -75,7 +75,7 @@ class Forger::Script
|
|
|
75
75
|
# allow override of region for s3 client to avoid warning:
|
|
76
76
|
# S3 client configured for "us-east-1" but the bucket "xxx" is in "us-west-2"; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts
|
|
77
77
|
# Example: endpoint: 'https://s3.us-west-2.amazonaws.com'
|
|
78
|
-
options[:endpoint] = ENV['
|
|
78
|
+
options[:endpoint] = ENV['FORGER_S3_ENDPOINT'] if ENV['FORGER_S3_ENDPOINT']
|
|
79
79
|
if options[:endpoint]
|
|
80
80
|
options[:region] = options[:endpoint].split('.')[1]
|
|
81
81
|
end
|
data/lib/forger/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04-
|
|
11
|
+
date: 2018-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|