awspec 0.75.0 → 0.75.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awspec/helper/finder.rb +7 -1
- data/lib/awspec/type/route_table.rb +5 -5
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49fe94ffa30e6b9c92023146cd85c521aceff9e2
|
4
|
+
data.tar.gz: 179a8c1ce8704c773a939256ae6d9236e0ede141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e86efde98bdfac2803b68190fd244be251d51b623170d5369a7d1666cb5e6ff6077b1a301e7369c7be7a56655eebb3681d3fc02dfa13c1a13e5a0952c7612b
|
7
|
+
data.tar.gz: 666058aa1d1c028f5585fe798e4920010365d4fa74437b995072044c555bd3a760803308cdd9d8ff9d3264ac727ecef52760fc84b137d491389e6fd84aa83a46
|
data/lib/awspec/helper/finder.rb
CHANGED
@@ -98,9 +98,15 @@ module Awspec::Helper
|
|
98
98
|
dynamodb_client: Aws::DynamoDB::Client
|
99
99
|
}
|
100
100
|
|
101
|
+
CLIENT_OPTIONS = {
|
102
|
+
http_proxy: ENV['http_proxy'] || ENV['https_proxy'] || nil
|
103
|
+
}
|
104
|
+
|
101
105
|
CLIENTS.each do |method_name, client|
|
102
106
|
define_method method_name do
|
103
|
-
|
107
|
+
unless self.methods.include? "@#{method_name}"
|
108
|
+
instance_variable_set("@#{method_name}", client.new(CLIENT_OPTIONS))
|
109
|
+
end
|
104
110
|
end
|
105
111
|
end
|
106
112
|
end
|
@@ -42,13 +42,13 @@ module Awspec::Type
|
|
42
42
|
return true if route.gateway_id == gateway_id
|
43
43
|
# internet gateway
|
44
44
|
igw = find_internet_gateway(gateway_id)
|
45
|
-
return true if igw && igw.
|
45
|
+
return true if igw && igw.internet_gateway_id == route.gateway_id
|
46
46
|
# vpn gateway
|
47
47
|
vgw = find_vpn_gateway(gateway_id)
|
48
|
-
return true if vgw && vgw.
|
48
|
+
return true if vgw && vgw.vpn_gateway_id == route.gateway_id
|
49
49
|
# customer gateway
|
50
50
|
cgw = find_customer_gateway(gateway_id)
|
51
|
-
return true if cgw && cgw.
|
51
|
+
return true if cgw && cgw.customer_gateway_id == route.gateway_id
|
52
52
|
# nat gateway
|
53
53
|
return true if route.nat_gateway_id == gateway_id
|
54
54
|
false
|
@@ -58,7 +58,7 @@ module Awspec::Type
|
|
58
58
|
# instance
|
59
59
|
return true if route.instance_id == instance_id
|
60
60
|
instance = find_ec2(instance_id)
|
61
|
-
return true if instance && instance.
|
61
|
+
return true if instance && instance.instance_id == route.instance_id
|
62
62
|
false
|
63
63
|
end
|
64
64
|
|
@@ -71,7 +71,7 @@ module Awspec::Type
|
|
71
71
|
# vpc_peering_connection_id
|
72
72
|
return true if route.vpc_peering_connection_id == vpc_peering_connection_id
|
73
73
|
connection = find_vpc_peering_connection(vpc_peering_connection_id)
|
74
|
-
return true if connection && connection.
|
74
|
+
return true if connection && connection.vpc_peering_connection_id == route.vpc_peering_connection_id
|
75
75
|
false
|
76
76
|
end
|
77
77
|
end
|
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.75.
|
4
|
+
version: 0.75.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|