prima-twig 0.28.2 → 0.28.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +20 -23
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96cc22bc663d32954115311942b3c26def0ea255
4
- data.tar.gz: 6c17ebe65626a51684ef032bee71bc2b2bef3e9f
3
+ metadata.gz: 4f0b6580810390aa371f33e67938a26f01ff3828
4
+ data.tar.gz: f009cf6e6118eccb034dff9ae32e02dacacd517b
5
5
  SHA512:
6
- metadata.gz: 53d85c545fbad2c3d84046315924b690bde3e04f0ca63c08882d47cc99b33636cf0c6a1c1a20daa8e60f7f34aa6b169cbb4a76b97523d0e2df59d33f4ee8f531
7
- data.tar.gz: ff9fd4a6f67649b90a7431fc5cc8e6aa339dcaf816ab04936f8fc53422efea460a594a2fadbbf515ca60579ce0b204abc2e96fadc6d192859b7c9137b71cceeb
6
+ metadata.gz: b2cc718830bcb0362861e1f8433cffa18e3c13bd6694ed9e2df2d0cdd5021b8b8e22b9cdff83a12d210bdc34c3eb436822170042fb0007c312a3261c9712cac2
7
+ data.tar.gz: 55f5d3f73c8d3b45e0f231ade1b1ccfa7e764cb145646ac0f21f07df1a4842d02f7b420756790719cea51aaa6bf6d0a0a0dd06640102869bf0f34e323d5da48d
@@ -19,6 +19,7 @@ class Release
19
19
  @alb = Aws::ElasticLoadBalancingV2::Client.new
20
20
  @ec2 = Aws::EC2::Client.new
21
21
  @ecs = Aws::ECS::Client.new
22
+ @batch = Aws::Batch::Client.new
22
23
  @s3 = Aws::S3::Client.new
23
24
  @asg = Aws::AutoScaling::Client.new
24
25
  @s3_bucket = 'prima-artifacts'
@@ -1943,32 +1944,28 @@ class Release
1943
1944
 
1944
1945
  def launch_marley
1945
1946
  resp = @cf.describe_stack_resource({
1946
- stack_name: 'ecs-task-marley',
1947
- logical_resource_id: 'TaskDefinitionMarley'
1947
+ stack_name: 'batch-job-marley',
1948
+ logical_resource_id: 'JobDefinition'
1948
1949
  })
1949
1950
 
1950
- @ecs.run_task({
1951
- cluster: 'ecs-cluster-tools-ECSCluster-1I4THZHRXOTO5',
1952
- task_definition: resp.stack_resource_detail.physical_resource_id,
1953
- overrides: {
1954
- container_overrides: [
1955
- {
1956
- name: 'marley',
1957
- environment: [
1958
- {
1959
- name: 'PRIMA_URL',
1960
- value: "https://#{get_route53_hostname("ecs-task-web-qa-notneeded")}/"
1961
- },
1962
- {
1963
- name: 'PROJECTS_JSON',
1964
- value: @projects.to_json
1965
- }
1966
- ]
1967
- }
1968
- ]
1969
- },
1970
- count: 1
1951
+ @batch.submit_job({
1952
+ job_name: "marley-#{@dns_record_identifier}", # required
1953
+ job_queue: "marley", # required
1954
+ job_definition: resp.stack_resource_detail.physical_resource_id, # required
1955
+ container_overrides: {
1956
+ environment: [
1957
+ {
1958
+ name: 'PRIMA_URL',
1959
+ value: "https://#{get_route53_hostname("ecs-task-web-qa-notneeded")}/"
1960
+ },
1961
+ {
1962
+ name: 'PROJECTS_JSON',
1963
+ value: @projects.to_json
1964
+ }
1965
+ ]
1966
+ }
1971
1967
  })
1968
+
1972
1969
 
1973
1970
  output "Marley lanciato con successo!\n".green
1974
1971
  end
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.28.2
4
+ version: 0.28.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino