ufo 4.1.4 → 4.1.5

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: 93c6b17c7c0722a44185ef2449241c9ad716838317d2cc64d4d328a027221721
4
- data.tar.gz: 730ca94c0a44a9648fb9e10de9197c9f4c7e8f58bcca58ce0391876d6f3d5bd7
3
+ metadata.gz: dfa53f85e3ac49817fc7173c918c0df4fcf438d16136a6fd51feb0ddc82b0e0e
4
+ data.tar.gz: e02f034850589710adf85058649086082cced6df401e76c854f8eed737ebf5ba
5
5
  SHA512:
6
- metadata.gz: 688ae4a1750d046d6e53251ba3867d35bcdf4b2d292e4c7d2744d25ba690ed58be19a92f822bfc1ba002735d7bbb90e7f6d0aae1f08e610932df7f8e83c1f5e3
7
- data.tar.gz: 0f26fec4175b0788c606f4933f7b8ed5c243b45a8cb4a1f4efe9c7bc821b34b343b8222f8e1b333e22c92130750c44fd14c5634e89db23c6366a824ba969ff95
6
+ metadata.gz: 3d7b2d923c46bad0e2d307f6ebb453ea3382c11dae15d81979ee273ecffbe386470c8ac3f13b1e7beb8def4a58afd37ce0e87f125fd1a3d4899ac82d5981035e
7
+ data.tar.gz: b3fcdecaf2d7b3507df84bd78c7d790a15b9f5299977bb4396f833470f0c05b15448a505c687e475220763266ea52577d8dfbba8f3baa927cff8f8d76752d74d
@@ -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
+ ## [4.1.5]
7
+ - provide error message and instructions for case of missing default vpc, pull request #49
8
+
6
9
  ## [4.1.4]
7
10
  - improve regexp for striping trailing comments in env files, fixes #47
8
11
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ufo (4.1.3)
4
+ ufo (4.1.5)
5
5
  aws-sdk-cloudformation
6
6
  aws-sdk-cloudwatchlogs
7
7
  aws-sdk-ec2
@@ -25,19 +25,19 @@ GEM
25
25
  minitest (~> 5.1)
26
26
  tzinfo (~> 1.1)
27
27
  aws-eventstream (1.0.1)
28
- aws-partitions (1.100.0)
28
+ aws-partitions (1.102.0)
29
29
  aws-sdk-cloudformation (1.6.0)
30
30
  aws-sdk-core (~> 3)
31
31
  aws-sigv4 (~> 1.0)
32
32
  aws-sdk-cloudwatchlogs (1.5.0)
33
33
  aws-sdk-core (~> 3)
34
34
  aws-sigv4 (~> 1.0)
35
- aws-sdk-core (3.24.1)
35
+ aws-sdk-core (3.25.0)
36
36
  aws-eventstream (~> 1.0)
37
37
  aws-partitions (~> 1.0)
38
38
  aws-sigv4 (~> 1.0)
39
39
  jmespath (~> 1.0)
40
- aws-sdk-ec2 (1.42.0)
40
+ aws-sdk-ec2 (1.43.0)
41
41
  aws-sdk-core (~> 3)
42
42
  aws-sigv4 (~> 1.0)
43
43
  aws-sdk-ecr (1.4.0)
@@ -15,7 +15,14 @@ class Ufo::Network
15
15
  resp = ec2.describe_vpcs(filters: [
16
16
  {name: "isDefault", values: ["true"]}
17
17
  ])
18
- resp.vpcs.first.vpc_id
18
+ default_vpc = resp.vpcs.first
19
+ if default_vpc
20
+ default_vpc.vpc_id
21
+ else
22
+ puts "A default vpc was not found in this AWS account and region.".colorize(:red)
23
+ puts "Because there is no default vpc, please specify the --vpc-id option. More info: http://ufoships.com/reference/ufo-init/"
24
+ exit 1
25
+ end
19
26
  end
20
27
  memoize :vpc_id
21
28
 
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "4.1.4"
2
+ VERSION = "4.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.4
4
+ version: 4.1.5
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-08-21 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudformation