cloud-mu 2.0.0.pre.alpha4 → 2.0.0.pre.alpha5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc4fa3ace543abb312bf853be83b0b229a61cf4cd1dbb00f7a4ac1c383fe2538
4
- data.tar.gz: 35ed1769840efedaa2b2408e0f0c24c07417c77aeaf8cb43dd11f758970a9d47
3
+ metadata.gz: b9e39984a806ae75ce0f8515204b6a5eed46ff42521c22271397f9cfb5fb529c
4
+ data.tar.gz: 6548cdbc9871238fa7e6a3856b990f6b6a0fde84f380df392c6d10a4986a0c3f
5
5
  SHA512:
6
- metadata.gz: 38feb71676cf984e102f90e41b96849521762f3cf0bcfc2e06af0b69a45e9255b02ff503f84ca27346dedb501e362b07b26be172cec0e4e118302cd9af5853b9
7
- data.tar.gz: 2cdacd00b476374c45a94dddf0ee5e60b018200dbf58e34510bef8cb0169ea03a7edc1f7726c7f742304687cdeade991b05a71f40cb0326590e1091e757aada1
6
+ metadata.gz: 79c13219169bbfbc987f5228f48c91879d2f08e6eca20d85cfa1b20e3de2dc5cfa2994ef4744f83bff49c1604a7b768befcf4a4145768928aff9b81affbfdf19
7
+ data.tar.gz: 189a009570f6184876369969dca6f5f8752caeb29ff84c9bce8af944cdb9478781d67c9f15ec0f69ca4351ebce2378c75234135e067e717deab05a718fb7e41f
data/cloud-mu.gemspec CHANGED
@@ -17,8 +17,8 @@ end
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = 'cloud-mu'
20
- s.version = '2.0.0-alpha4'
21
- s.date = '2018-12-11'
20
+ s.version = '2.0.0-alpha5'
21
+ s.date = '2019-02-12'
22
22
  s.require_paths = ['modules']
23
23
  s.required_ruby_version = '>= 2.4'
24
24
  s.summary = "The eGTLabs Mu toolkit for unified cloud deployments"
data/modules/mu/config.rb CHANGED
@@ -1152,19 +1152,22 @@ module MU
1152
1152
  ok
1153
1153
  end
1154
1154
 
1155
- allregions = []
1156
- allregions.concat(MU::Cloud::AWS.listRegions) if MU::Cloud::AWS.myRegion
1157
- allregions.concat(MU::Cloud::Google.listRegions) if MU::Cloud::Google.defaultProject
1155
+ # XXX this is some primitive nonsense and needs to be cloud-agnostic
1156
+ @@allregions = []
1157
+ @@allregions.concat(MU::Cloud::AWS.listRegions) if MU::Cloud::AWS.myRegion
1158
+ @@allregions.concat(MU::Cloud::Google.listRegions) if MU::Cloud::Google.defaultProject
1158
1159
 
1159
1160
  # Configuration chunk for choosing a provider region
1160
1161
  # @return [Hash]
1161
1162
  def self.region_primitive
1162
- allregions = []
1163
- allregions.concat(MU::Cloud::AWS.listRegions) if MU::Cloud::AWS.myRegion
1164
- allregions.concat(MU::Cloud::Google.listRegions) if MU::Cloud::Google.defaultProject
1163
+ if !@@allregions or @@allregions.empty?
1164
+ @@allregions = []
1165
+ @@allregions.concat(MU::Cloud::AWS.listRegions) if MU::Cloud::AWS.myRegion
1166
+ @@allregions.concat(MU::Cloud::Google.listRegions) if MU::Cloud::Google.defaultProject
1167
+ end
1165
1168
  {
1166
1169
  "type" => "string",
1167
- "enum" => allregions
1170
+ "enum" => @@allregions
1168
1171
  }
1169
1172
  end
1170
1173
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-mu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha4
4
+ version: 2.0.0.pre.alpha5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Stange
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-12-11 00:00:00.000000000 Z
15
+ date: 2019-02-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: erubis