shards 3.5 → 3.6

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: 320ece700811e52b39ec9fa674dcfd15931eda715e56a1feaf753737d80e2308
4
- data.tar.gz: 87b7124eb6879b2f904842c6d07d641b2f070144fb2a73162d27072882b6341b
3
+ metadata.gz: b7b94481fa9b2a9cac039c9b95f3eb0daa9537cc1c0410fe57a36af1f8c954fc
4
+ data.tar.gz: a85de35d1393da2d92684fbfc4855132fae8302153a3556fb9329da2216c5447
5
5
  SHA512:
6
- metadata.gz: 601e021902dc07f7bcb031fd148d646c2f1e1cd1cc7c486db9bd6001b1255d5750632b3c19fab30805a1623c19126c61a8c0edf7e94148eaf6f278402d8b009d
7
- data.tar.gz: 56e5b9760062b62ff658387685f5bbf16fc87231b102816c14b9c8a8059bf737708f80dbab577ddd8229ccf099735a9070fec8402732ead6a0d1c639a9de515a
6
+ metadata.gz: d5ef76bc86b80f119d85ff232cd41c8fd605d6d154df592531672a83378cab59340b983dbca0f363d9fa5263eb9beb0fbb2e83fbf3d819be87e58ea7675c59aa
7
+ data.tar.gz: 5e65733e418646ad908ce3e0a0fdc2880788b9805114675cc0d428b691aa1db0b9e5cdb05e898ee295356387b5e5990808d75fbd77547bccffbbb883bb8f1c3b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (3.5)
4
+ shards (3.6)
5
5
  aws-sdk-ec2 (~> 1.48)
6
6
  aws-sdk-elasticloadbalancing (~> 1.5)
7
7
  aws-sdk-elasticloadbalancingv2 (~> 1.14)
@@ -24,13 +24,13 @@ GEM
24
24
  rspec-expectations (>= 2.99)
25
25
  thor (~> 0.19)
26
26
  aws-eventstream (1.0.1)
27
- aws-partitions (1.141.0)
27
+ aws-partitions (1.143.0)
28
28
  aws-sdk-core (3.46.2)
29
29
  aws-eventstream (~> 1.0)
30
30
  aws-partitions (~> 1.0)
31
31
  aws-sigv4 (~> 1.0)
32
32
  jmespath (~> 1.0)
33
- aws-sdk-ec2 (1.71.0)
33
+ aws-sdk-ec2 (1.72.0)
34
34
  aws-sdk-core (~> 3, >= 3.39.0)
35
35
  aws-sigv4 (~> 1.0)
36
36
  aws-sdk-elasticloadbalancing (1.8.0)
@@ -93,7 +93,7 @@ GEM
93
93
  terminal-table (1.8.0)
94
94
  unicode-display_width (~> 1.1, >= 1.1.1)
95
95
  thor (0.20.0)
96
- unicode-display_width (1.4.1)
96
+ unicode-display_width (1.5.0)
97
97
 
98
98
  PLATFORMS
99
99
  ruby
@@ -161,4 +161,3 @@ Shards::Stage:
161
161
  add "#### Shards DryRun ####"
162
162
  add "Shard: #{shard.name}"
163
163
  add "DB: #{shard.db.name}"
164
-
@@ -17,7 +17,7 @@ module Shards
17
17
  end
18
18
 
19
19
  def file_list
20
- Dir.glob( File.join base_path, "*production*.yml" )
20
+ [ stage.get('engineering_config_file') ] + stage.get('extra_engineering_config_files')
21
21
  end
22
22
 
23
23
  def all_servers_file
@@ -29,7 +29,7 @@ module Shards
29
29
  list1=[]
30
30
  list2=[]
31
31
  file_list.each do |file|
32
- yaml=YAML.load_file file
32
+ yaml=YAML.load_file File.join(base_path, file)
33
33
  all_yaml=YAML.load_file all_servers_file
34
34
  yaml=all_yaml.merge(yaml)
35
35
  list1+= (yaml['loadbalancer_list'] || [] )
@@ -94,6 +94,14 @@ module Shards
94
94
  []
95
95
  end
96
96
 
97
+ def extra_engineering_config_files
98
+ []
99
+ end
100
+
101
+ def engineering_config_file
102
+ "#{engineering_dirname}_production.yml"
103
+ end
104
+
97
105
  def get_production_hosts
98
106
  @host_list || @ips || get_production_ips
99
107
  end
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "3.5"
2
+ VERSION = "3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shards
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.5'
4
+ version: '3.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-08 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler