shards 2.4.2 → 2.5.0

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: 490d4eb8ecb0429421e635ad060f13ea564a4c0c60832f5702b0389a66e9bf7f
4
- data.tar.gz: 1c34080cdeb2307ffb79fa14a94d78bda2ae89abbbdc64c41dd895cbcce7898d
3
+ metadata.gz: 41f8c70cbf4c67c583bc1d3233c7dcd839c1e2f0bce69849549258e3bf19c3ad
4
+ data.tar.gz: afb189df18b502204937df391c58ce122c5126ee893fc1b8670bbe9e7d421403
5
5
  SHA512:
6
- metadata.gz: 1b00ed1a01d6dabeb5747706ecdb266126ed86f9b1e49edf3432002beb06f427fa27072d49dfa5147c043ff8078e950038b388cc588a1b4f16947ef611cb8bd8
7
- data.tar.gz: cd90b43dc822688f1691830db51d79c7f22be62ec85f8568d583783e27da45efd8e88eb9b61b036a50601dfc4486528fbf031630d1149c6a39f1bcd341d74f7f
6
+ metadata.gz: 39a12f3531b4476c273b729c73cc9362c0686beb20268eab9c1211b9dcf038d3729f5d3f6805821f47fcb5fd58fd9e1209c5dd0df39f2edeb077a545546defd8
7
+ data.tar.gz: cc9f8abfa4bbd18027be497dca3a3c711b44b243cdfbc575a73472d073cfa6f88318b5b91bc3316acf3faa8382275e794a4a43c8f1af547c434899e37744816d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (2.4.2)
4
+ shards (2.5.0)
5
5
  aws-sdk-ec2 (~> 1.48)
6
6
  aws-sdk-elasticloadbalancing (~> 1.5)
7
7
  aws-sdk-elasticloadbalancingv2 (~> 1.14)
@@ -24,23 +24,23 @@ GEM
24
24
  rspec-expectations (>= 2.99)
25
25
  thor (~> 0.19)
26
26
  aws-eventstream (1.0.1)
27
- aws-partitions (1.107.0)
28
- aws-sdk-core (3.36.0)
27
+ aws-partitions (1.126.0)
28
+ aws-sdk-core (3.44.1)
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.54.0)
34
- aws-sdk-core (~> 3, >= 3.26.0)
33
+ aws-sdk-ec2 (1.64.0)
34
+ aws-sdk-core (~> 3, >= 3.39.0)
35
35
  aws-sigv4 (~> 1.0)
36
- aws-sdk-elasticloadbalancing (1.7.0)
37
- aws-sdk-core (~> 3, >= 3.26.0)
36
+ aws-sdk-elasticloadbalancing (1.8.0)
37
+ aws-sdk-core (~> 3, >= 3.39.0)
38
38
  aws-sigv4 (~> 1.0)
39
- aws-sdk-elasticloadbalancingv2 (1.16.0)
40
- aws-sdk-core (~> 3, >= 3.26.0)
39
+ aws-sdk-elasticloadbalancingv2 (1.19.0)
40
+ aws-sdk-core (~> 3, >= 3.39.0)
41
41
  aws-sigv4 (~> 1.0)
42
- aws-sdk-route53 (1.15.0)
43
- aws-sdk-core (~> 3, >= 3.26.0)
42
+ aws-sdk-route53 (1.17.0)
43
+ aws-sdk-core (~> 3, >= 3.39.0)
44
44
  aws-sigv4 (~> 1.0)
45
45
  aws-sigv4 (1.0.3)
46
46
  backports (3.11.3)
@@ -107,4 +107,4 @@ DEPENDENCIES
107
107
  shards!
108
108
 
109
109
  BUNDLED WITH
110
- 1.16.3
110
+ 1.16.6
@@ -0,0 +1,31 @@
1
+ ---
2
+ # see shared_steps in base.yaml to find the steps not defined in a workflow
3
+
4
+
5
+ fast_terminal2:
6
+
7
+ commit_changes:
8
+ message: The changes has been committed and pushed to the remote repository.
9
+ wrong_message: We had an issue to commit and push the changes.
10
+ correct: dns_upsert
11
+ wrong: finish
12
+
13
+ all_steps_in_base:
14
+ - all steps are in base yaml
15
+
16
+ correct_steps_summary:
17
+ - validate_client
18
+ - validate_domain
19
+ - validate_location
20
+ - validate_stage
21
+ - validate_blank_db_shard
22
+ - check_shard_presence_in_shards
23
+ - check_database_presence_in_server
24
+ - check_domain_dns_presence
25
+ - check_domain_presence_in_sites
26
+ - write_yaml_files
27
+ - create_database
28
+ - commit_changes
29
+ - dns_upsert
30
+
31
+ start: validate_client
@@ -0,0 +1,32 @@
1
+ ---
2
+ # see shared_steps in base.yaml to find the steps not defined in a workflow
3
+
4
+ fingerprints_terminal2:
5
+
6
+ validate_stage:
7
+ correct: check_fingerprints
8
+ wrong_message: Stage %s does not exist.
9
+ wrong: finish
10
+
11
+ validate_location:
12
+ correct: validate_stage
13
+ wrong_message: Location %s does not exist.
14
+ wrong: finish
15
+
16
+ application_reload_shards_task:
17
+ message: Reload task have been executed successfully.
18
+ wrong_message: Errors found in the reload task %s.
19
+ correct: finish
20
+ wrong: finish
21
+
22
+ correct_steps_summary:
23
+ - validate_location
24
+ - validate_stage
25
+ - check_fingerprints
26
+ # Run a 3 times loop when the above check fails.
27
+ - loop_step # start the loop here
28
+ - puppet_agent_udate
29
+ - check_fingerprints # finish loop
30
+ - application_reload_shards_task
31
+
32
+ start: validate_location
@@ -16,6 +16,16 @@ module Shards
16
16
 
17
17
  end
18
18
 
19
+ desc 'create2 LOCATION STAGE CLIENT DOMAIN', 'Fast creation without fingerprint check'
20
+
21
+ def create2 location, stage, client, domain
22
+
23
+ fast_terminal=Shards::Workflow::FastTerminal2.new config
24
+ fast_terminal.params= { client: client, domain: domain, location: location.downcase, stage: stage }
25
+ fast_terminal.start
26
+
27
+ end
28
+
19
29
  desc 'loop_fingerprint_check LOCATION STAGE CLIENT DOMAIN', 'Run a fingerprint check in a loop and then a dns upsert.'
20
30
 
21
31
  def loop_fingerprint_check location, stage, client, domain
@@ -26,6 +36,16 @@ module Shards
26
36
 
27
37
  end
28
38
 
39
+ desc 'loop_fingerprint_check2 LOCATION STAGE', 'Run a fingerprint check in a loop without dns upsert.'
40
+
41
+ def loop_fingerprint_check2 location, stage
42
+
43
+ terminal=Shards::Workflow::FingerprintsTerminal2.new config
44
+ terminal.params= { location: location.downcase, stage: stage }
45
+ terminal.start
46
+
47
+ end
48
+
29
49
  # desc 'create_all LOCATION CLIENT DOMAIN', 'Fast creation shard tool in all stages'
30
50
  #
31
51
  # def create_all location, client, domain
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "2.4.2"
2
+ VERSION = "2.5.0"
3
3
  end
@@ -0,0 +1,13 @@
1
+
2
+ module Shards
3
+
4
+ module Workflow
5
+
6
+ class FastTerminal2 < Shards::Workflow::Base
7
+
8
+
9
+ end
10
+
11
+ end
12
+
13
+ end
@@ -0,0 +1,12 @@
1
+
2
+ module Shards
3
+
4
+ module Workflow
5
+
6
+ class FingerprintsTerminal2 < Shards::Workflow::Base
7
+
8
+ end
9
+
10
+ end
11
+
12
+ 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: 2.4.2
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-21 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -248,9 +248,11 @@ files:
248
248
  - lib/settings/workflows/delete_by_api.yaml
249
249
  - lib/settings/workflows/delete_by_terminal.yaml
250
250
  - lib/settings/workflows/fast_terminal.yaml
251
+ - lib/settings/workflows/fast_terminal2.yaml
251
252
  - lib/settings/workflows/fast_terminal_all.yaml
252
253
  - lib/settings/workflows/fingerprints_by_api.yaml
253
254
  - lib/settings/workflows/fingerprints_terminal.yaml
255
+ - lib/settings/workflows/fingerprints_terminal2.yaml
254
256
  - lib/settings/workflows/terminal.yaml
255
257
  - lib/shards.rb
256
258
  - lib/shards/base.rb
@@ -274,9 +276,11 @@ files:
274
276
  - lib/shards/workflow/delete_by_api.rb
275
277
  - lib/shards/workflow/delete_by_terminal.rb
276
278
  - lib/shards/workflow/fast_terminal.rb
279
+ - lib/shards/workflow/fast_terminal2.rb
277
280
  - lib/shards/workflow/fast_terminal_all.rb
278
281
  - lib/shards/workflow/fingerprints_by_api.rb
279
282
  - lib/shards/workflow/fingerprints_terminal.rb
283
+ - lib/shards/workflow/fingerprints_terminal2.rb
280
284
  - lib/shards/workflow/terminal.rb
281
285
  - lib/shards/workflow/workflow.rb
282
286
  - shards.gemspec
@@ -302,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
306
  version: '0'
303
307
  requirements: []
304
308
  rubyforge_project:
305
- rubygems_version: 2.7.7
309
+ rubygems_version: 2.7.8
306
310
  signing_key:
307
311
  specification_version: 4
308
312
  summary: Manage shards and sites to many stages and app.