prima-twig 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-build +21 -15
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b42064cf9ef05ee9d998cd6fe3d77421e4edb01b598c6250fe6a40bb0a50164f
4
- data.tar.gz: 9b830b7e1c1fa78abe87f734ebd1312a0e9d6ecc283303b3b80dd38c74700249
3
+ metadata.gz: '091f08547af124e4424973a330e244cc89c0afda08731d8770ca6952ce857704'
4
+ data.tar.gz: 7d7ba09847a55b877e8718e6c72261ebe6601279992b803c82cbc985d1702b3d
5
5
  SHA512:
6
- metadata.gz: a9310f55d095458a29e04134ad55b0c79b217a29eea3c13b255dcf7d3e9da88eb23bd1d36e47c68e1d0e158f90266304220d609c70572285dcaf1b038ae17b60
7
- data.tar.gz: 7091bc2b23182b25d324b94e6d51f70cc522d09306ecc3134df825e3974adc7b564c6b98ff170b14cd3f2d10f59f80ac16b29a5c13ef5190c6e8c91d70618ae7
6
+ metadata.gz: 7a15bbff4f22afc78381578cb1d91415f46233228ba357049594c8315ab4594148dde25bf15e7431b65938f0c6a79f9823536cfc79ed88a111e324f5386b8c5b
7
+ data.tar.gz: af812efdde82ed5b2ddc06d12e97ac19f7d9a0bb150295640075ae7c93bd477964a0dc20008959eab6b0511f40625324a7713ce4f9c6809863c48e81824346c6
@@ -50,7 +50,7 @@ class Build
50
50
  }
51
51
  @base_stack_name_alb = 'ecs-alb-http-public-qa-'
52
52
  @base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
53
- @git_branch = ''
53
+ @git_branch = ENV['DRONE_BRANCH']
54
54
  @cloudflare = Rubyflare.connect_with(ENV['CLOUDFLARE_EMAIL'], ENV['CLOUDFLARE_APIKEY'])
55
55
  end
56
56
 
@@ -61,6 +61,7 @@ class Build
61
61
  when 'infrastructure'
62
62
  create_infrastructure_stacks! unless is_shutdown?
63
63
  when 'project'
64
+ set_tags()
64
65
  proj_method = "create_#{args[1]}_stack"
65
66
  self.send(proj_method.to_sym) unless is_shutdown?
66
67
  when 'complete'
@@ -194,6 +195,22 @@ class Build
194
195
  "ecs-task-#{service}-qa-#{get_deploy_id}"
195
196
  end
196
197
 
198
+ def set_tags()
199
+ @tags = [
200
+ {
201
+ key: "qainit",
202
+ value: @git_branch
203
+ },
204
+ {
205
+ key: "hostname_pattern_priority",
206
+ value: hostname_pattern_priority
207
+ }
208
+ ]
209
+ @projects.each do |key, value|
210
+ @tags << { key: key, value: value['name'] }
211
+ end
212
+ end
213
+
197
214
  def create_infrastructure_stacks!
198
215
  `git pull && git submodule init && git submodule update`
199
216
  @ami_id = get_ami_id("ecs-fleet-allinone-staging")
@@ -207,21 +224,9 @@ class Build
207
224
  end
208
225
  end
209
226
  end
210
- @git_branch = ENV['DRONE_BRANCH']
211
227
  hostname_pattern_priority = hostname_pattern_priority()
212
- @tags = [
213
- {
214
- key: "qainit",
215
- value: @git_branch
216
- },
217
- {
218
- key: "hostname_pattern_priority",
219
- value: hostname_pattern_priority
220
- }
221
- ]
222
- @projects.each do |key, value|
223
- @tags << { key: key, value: value['name'] }
224
- end
228
+
229
+ set_tags()
225
230
 
226
231
  cluster_stack_name = "ecs-cluster-qa-#{deploy_id}"
227
232
 
@@ -1482,6 +1487,7 @@ class Build
1482
1487
  > RabbitMQ url: http://#{get_ec2_ip_address}:15672
1483
1488
  > Supervisor url: http://#{get_ec2_ip_address}:9001
1484
1489
  > Elasticsearch url: http://#{get_ec2_ip_address}:9200
1490
+ > Git branch: #{@git_branch}
1485
1491
  > SSH connection: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no githubUsername@#{get_ec2_ip_address}\n"
1486
1492
  output projects_text.cyan
1487
1493
  output "Deploy effettuato, everything is awesome!\n".green
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: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
328
  - !ruby/object:Gem::Version
329
329
  version: '0'
330
330
  requirements: []
331
- rubygems_version: 3.0.3
331
+ rubygems_version: 3.0.1
332
332
  signing_key:
333
333
  specification_version: 4
334
334
  summary: The Prima twig toolbelt