cloudstrap 0.49.0.pre → 0.49.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudstrap/network.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe2a6aecc992dba7d8ae3e7cea153ed4697b112f
|
4
|
+
data.tar.gz: 82e307e1cb7911b2a99f7e744df211f66918b982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24ba59a8b14d156b3936199aceb4be819c1a1949d773b8b2a20630e0b9e10985e96378e111abc778d15a84dde5fc8b3062bfc8d37050e787cb072a9df8c64c65
|
7
|
+
data.tar.gz: 9cb5aa5f40d1cc0f2bf086338bb5c7c6256c86f97dbdfeb94cccdcd10d20fec42c470d71f6f4518a2ee8fb0f7608d5a8ce3a168b221ff9ed1cfb9f712fb9e354
|
data/lib/cloudstrap/network.rb
CHANGED
@@ -15,11 +15,11 @@ module Cloudstrap
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def public
|
18
|
-
@public ||= subnets.select { |
|
18
|
+
@public ||= subnets.each_with_index.select { |_subnet, index| index.even? }.map(&:first)
|
19
19
|
end
|
20
20
|
|
21
21
|
def private
|
22
|
-
@private ||= subnets.select { |
|
22
|
+
@private ||= subnets.each_with_index.select { |_subnet, index| index.odd? }.map(&:first)
|
23
23
|
end
|
24
24
|
|
25
25
|
def public_layout(*zones)
|