minimal_pipeline 0.0.2 → 0.0.3
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/lib/minimal_pipeline/cloudformation.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c51843580116b0baa552b393cab63ae72b06ab19a287b798f864e6af3e9e0784
|
4
|
+
data.tar.gz: 249ef6d020f5ebe9e33711208f2eb918a67dd31f955036cc73216f2f92404dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654688ec6eb55b855773229c119d78b5aaac249451e0c9128eb3e960589faa1ea0d8f7d76eaf2cd711421ec6ec1521e4f9f3c5a2321fc03b6498d2a98ef0c98b
|
7
|
+
data.tar.gz: 58df7c16c54cbe16be52acad715afee49c351f8328272fd50014ea83e0028c11ff468cc6564b4c3eb619a5e4c060934a65f70ccec5b1db143fced0d95136ce3f
|
@@ -35,9 +35,10 @@ class MinimalPipeline
|
|
35
35
|
# Sets up `Aws::CloudFormation::Client`
|
36
36
|
# Requires environment variable `AWS_REGION` or `region` to be set.
|
37
37
|
def initialize
|
38
|
-
raise 'You must set env variable AWS_REGION.'
|
38
|
+
raise 'You must set env variable AWS_REGION or region.' \
|
39
|
+
if ENV['AWS_REGION'].nil? && ENV['region'].nil?
|
39
40
|
|
40
|
-
region = ENV['AWS_REGION']
|
41
|
+
region = ENV['AWS_REGION'] || ENV['region']
|
41
42
|
@client = Aws::CloudFormation::Client.new(region: region)
|
42
43
|
end
|
43
44
|
|