prima-twig 0.31.11 → 0.31.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +3 -3
  3. data/bin/twig-update-ami +14 -13
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 426271616c4d69d200fff5963459fc43e0c01ea0
4
- data.tar.gz: 2da4569c61369c7c2d2f8eb96a4bd176eca50fcd
3
+ metadata.gz: 7df7e7637b2c23956fffdd8d180396ccd1baefda
4
+ data.tar.gz: 1fec4a847e43d9e2c7bd6587ed730bedd687e100
5
5
  SHA512:
6
- metadata.gz: 3c9379ad42041644f1c9298401f0d898b5abef18765ef45f2a7fa86eae70353573bc34c5a6a80890cd01f01b6f20db42500ae1dc30aac88215bc5ac965b1646a
7
- data.tar.gz: 105b8f07219e2f8e0f5a511dc62815fe512e2e42463d91f687f69be54deed190a5ba3e19c9f736bbd4389e3b68d1c0e770f7db0c8be1a29fdc9e2da5a54821b8
6
+ metadata.gz: 557bd5e8836be2c8c4ebb31a4cd247395aeb2cf8c7f9f7970f55f9df733f5d90bb992f8ead8b23c9e4812cdd66fec4e47cdf4759ee58706b8b153dc16c1e73a0
7
+ data.tar.gz: b3ceb18c9fffa92eed40e473df7067fa7919a449ce615c6902036ffbbab037c89449108afa6a8634371ec7c61f493f313b9a8826b2371194237ea1afe7e523df
@@ -127,6 +127,7 @@ class Release
127
127
 
128
128
  def deploy_aggregator_enable!
129
129
  output 'Enable aggregator'
130
+
130
131
  output 'Recupero le informazioni relative al puntamento dei record DNS...'
131
132
  cloudflare = Rubyflare.connect_with(@prima.config['cloudflare_email'], @prima.config['cloudflare_apikey'])
132
133
  dns_records = cloudflare.get('zones/1fb634f19c43dfb0162cc4cb91915da2/dns_records', { per_page: 100, type: 'CNAME', content: 'staging.prima.it' })
@@ -1341,8 +1342,7 @@ class Release
1341
1342
  mix phx.digest && \
1342
1343
  mix deps.clean --all && \
1343
1344
  mix deps.get && \
1344
- mix compile && mix release --env=qa'",
1345
- 'docker-compose down'
1345
+ mix compile && mix release --env=qa'"
1346
1346
  ].each do |cmd|
1347
1347
  execute_command cmd
1348
1348
  end
@@ -1836,7 +1836,7 @@ class Release
1836
1836
 
1837
1837
  @batch.submit_job({
1838
1838
  job_name: "marley-#{@dns_record_identifier}", # required
1839
- job_queue: 'marley', # required
1839
+ job_queue: "marley", # required
1840
1840
  job_definition: resp.stack_resource_detail.physical_resource_id, # required
1841
1841
  container_overrides: {
1842
1842
  environment: [
@@ -62,30 +62,31 @@ class TwigUpdateAmi
62
62
  end
63
63
 
64
64
  def update_yml_files(ami_id, yaml_filename)
65
- yaml_file = File.read yaml_filename
65
+ file_content = File.read yaml_filename
66
66
 
67
- yaml_file.sub!(/ami-[0-9a-z]{8}/, ami_id)
67
+ file_content.sub!(/ami-[0-9a-z]{8}/, ami_id)
68
68
 
69
69
  File.open yaml_filename, 'w' do |f|
70
- f.write yaml_file
70
+ f.write file_content
71
71
  end
72
72
 
73
- if yaml_filename.include? 'spotfleet' do
73
+ if yaml_filename.include? 'spotfleet'
74
74
  old_handle = (File.read yaml_filename)[/InstanceReadyWaitHandleUpdate[0-9]+/]
75
- handle_version = old_handle.sub('InstanceReadyWaitHandleUpdate', '').to_i + 1
75
+ if old_handle
76
+ handle_version = old_handle.sub('InstanceReadyWaitHandleUpdate', '').to_i + 1
76
77
 
77
- old_condition = (File.read yaml_filename)[/InstanceReadyWaitConditionUpdate[0-9]+/]
78
- condition_version = old_condition.sub('InstanceReadyWaitConditionUpdate', '').to_i + 1
78
+ old_condition = (File.read yaml_filename)[/InstanceReadyWaitConditionUpdate[0-9]+/]
79
+ condition_version = old_condition.sub('InstanceReadyWaitConditionUpdate', '').to_i + 1
79
80
 
80
- file_content = File.read yaml_filename
81
- file_content.gsub!(old_handle, 'InstanceReadyWaitHandleUpdate' + handle_version.to_s)
82
- file_content.gsub!(old_condition, 'InstanceReadyWaitConditionUpdate' + condition_version.to_s)
81
+ file_content = File.read yaml_filename
82
+ file_content.gsub!(old_handle, 'InstanceReadyWaitHandleUpdate' + handle_version.to_s)
83
+ file_content.gsub!(old_condition, 'InstanceReadyWaitConditionUpdate' + condition_version.to_s)
83
84
 
84
- File.open yaml_filename, 'w' do |f|
85
- f.write file_content
85
+ File.open yaml_filename, 'w' do |f|
86
+ f.write file_content
87
+ end
86
88
  end
87
89
  end
88
- end
89
90
  end
90
91
 
91
92
  def copy_yml_files_to_s3(source, s3_key)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.11
4
+ version: 0.31.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.6.14
217
+ rubygems_version: 2.6.12
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: The Prima twig toolbelt