cloudstrap 0.47.0.pre → 0.47.2.pre

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
  SHA1:
3
- metadata.gz: bd656a1fb5421724af841dca0ff457b082811bab
4
- data.tar.gz: 5b961f7ca2cd65e7d732500fd750578f5e91ab74
3
+ metadata.gz: 1d47fbc090ca2646eef3d3ee888781019e590a0f
4
+ data.tar.gz: 5de7a4205f570048dbf87fe3eeba37ad0f772a32
5
5
  SHA512:
6
- metadata.gz: 100e5c75a79d96f8a4ed7e1132f6df54fc063dab809c76a2ec242be892362015662b203b0205bee559af075f65ccce2d8f37f8d49fe4bb0c7878a933dda83544
7
- data.tar.gz: c1009f7862b4a7c7220887eaefa6736a98f09face46d97d9ee7de30e1b2b61193e67fc3c07abb401adfa58eac5fce8426524e094c8067367c8fd39598a8aa4fc
6
+ metadata.gz: 18d1f02d11172bfee7b3ce45a2013c60aa6271c82c01bcfe284a67a95a84ad153f38e697fd8720b8c94a437817cce4448746627ad2e34302e89a2fb97c6ae8ba
7
+ data.tar.gz: 6df26b4464f08af812708d6ab6ebda4724672c8053f5fd80bff30e96f8b6b6edc5adb9ab52d41c3f6ebc7afc76bc8213d714642aaeb449a994dd2d376a3ce1b7
@@ -424,7 +424,7 @@ module Cloudstrap
424
424
  Contract None => ArrayOf[Aws::EC2::Types::AvailabilityZone]
425
425
  def availability_zones!
426
426
  @availability_zones = call_api(:describe_availability_zones)
427
- .availability_zones
427
+ .availability_zones.take(config.maximum_availability_zones)
428
428
  end
429
429
 
430
430
  Contract None => ArrayOf[Aws::EC2::Types::AvailabilityZone]
@@ -242,6 +242,11 @@ module Cloudstrap
242
242
  lookup(:remote_hooks_dir) { '.cloudstrap/hooks' }
243
243
  end
244
244
 
245
+ Contract None => Pos
246
+ def maximum_availability_zones
247
+ lookup(:maximum_availability_zones) { '3' }.to_i
248
+ end
249
+
245
250
  private
246
251
 
247
252
  Contract None => ::Pastel::Delegator
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0.pre
4
+ version: 0.47.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk