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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c77dd539e2d2d4c1a1639ed735bb8ef0d1e0802e59a1240e16af9e2baa03954d
4
- data.tar.gz: 22fc7cc213e129f5ceada0fde056f61cfaa3722078b65b1dbc99b77d8fa48bcf
3
+ metadata.gz: c51843580116b0baa552b393cab63ae72b06ab19a287b798f864e6af3e9e0784
4
+ data.tar.gz: 249ef6d020f5ebe9e33711208f2eb918a67dd31f955036cc73216f2f92404dd5
5
5
  SHA512:
6
- metadata.gz: fd61094908f6d9407dbbf1b3e7b8218013125a71d0fe9582887547b297138acfc3952cab760661ab1856a4b80b1d99c12f5771128d6b5b31f27272ad93cd29c8
7
- data.tar.gz: cf8b54cdedd4b8bccbbe5539cf6ff15742fc3968bc2ff74aa37f7db0bb9e77d6fd25905af81c635e5250b0d7120df3c8ef0f8cbc1c8399c91cef7c5de7891879
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.' if ENV['AWS_REGION'].nil?
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mayowa Aladeojebi