prima-twig 0.26.3 → 0.27.0
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 +4 -4
- data/bin/twig-feature +35 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 616636fc898493f808651e781ada4de61e0ccf4f
|
|
4
|
+
data.tar.gz: 8db7298cbec2076199e4970f9079fcff977c057a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5025bbf7b4385ce5979a4dbc185b70d0772876eeed296d483bb4dfab9897143bc0ec26d4a5ae36d65acad5cc9fa4229df0f4d3ec75525ce5335c232a7b0ac144
|
|
7
|
+
data.tar.gz: 28d4c47e9a676f53d2f0439bcd95c1e1671995bf3bc6dcce90e526ac1ff83a4f29bee4fdc085f0e8c92172cfa428dd3eee72aed01f8c4b9a95acb40ee27de836
|
data/bin/twig-feature
CHANGED
|
@@ -5,6 +5,7 @@ require_relative '../lib/prima_twig.rb'
|
|
|
5
5
|
require 'launchy'
|
|
6
6
|
require 'digest'
|
|
7
7
|
require 'pp'
|
|
8
|
+
require 'json'
|
|
8
9
|
|
|
9
10
|
class Release
|
|
10
11
|
include Command
|
|
@@ -1020,6 +1021,8 @@ class Release
|
|
|
1020
1021
|
|
|
1021
1022
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
|
1022
1023
|
|
|
1024
|
+
launch_marley()
|
|
1025
|
+
|
|
1023
1026
|
output "Prima url: https://#{prima_hostname}\n".cyan
|
|
1024
1027
|
output "Prima RI url: https://#{prima_hostname.sub("www", "wwwri")}\n".cyan
|
|
1025
1028
|
output "Backoffice (Borat) url: https://#{borat_hostname}\n".cyan
|
|
@@ -1931,6 +1934,38 @@ class Release
|
|
|
1931
1934
|
(Time.now.to_i.to_s[-4..-1].to_i + Random.rand(40000)).to_s
|
|
1932
1935
|
end
|
|
1933
1936
|
|
|
1937
|
+
def launch_marley
|
|
1938
|
+
resp = @cf.describe_stack_resource({
|
|
1939
|
+
stack_name: 'ecs-task-marley',
|
|
1940
|
+
logical_resource_id: 'TaskDefinitionMarley'
|
|
1941
|
+
})
|
|
1942
|
+
|
|
1943
|
+
@ecs.run_task({
|
|
1944
|
+
cluster: 'ecs-cluster-tools-ECSCluster-1I4THZHRXOTO5',
|
|
1945
|
+
task_definition: resp.stack_resource_detail.physical_resource_id,
|
|
1946
|
+
overrides: {
|
|
1947
|
+
container_overrides: [
|
|
1948
|
+
{
|
|
1949
|
+
name: 'marley',
|
|
1950
|
+
environment: [
|
|
1951
|
+
{
|
|
1952
|
+
name: 'PRIMA_URL',
|
|
1953
|
+
value: "https://#{get_route53_hostname("ecs-task-web-qa-notneeded")}/"
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
name: 'PROJECTS_JSON',
|
|
1957
|
+
value: @projects.to_json
|
|
1958
|
+
}
|
|
1959
|
+
]
|
|
1960
|
+
}
|
|
1961
|
+
]
|
|
1962
|
+
},
|
|
1963
|
+
count: 1
|
|
1964
|
+
})
|
|
1965
|
+
|
|
1966
|
+
output "Marley lanciato con successo!\n".green
|
|
1967
|
+
end
|
|
1968
|
+
|
|
1934
1969
|
def select_branches(project_name = nil)
|
|
1935
1970
|
output "Deploy feature menu"
|
|
1936
1971
|
if project_name.nil?
|
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.
|
|
4
|
+
version: 0.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2017-10-
|
|
15
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: twig
|
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
198
|
rubyforge_project:
|
|
199
|
-
rubygems_version: 2.6.
|
|
199
|
+
rubygems_version: 2.6.14
|
|
200
200
|
signing_key:
|
|
201
201
|
specification_version: 4
|
|
202
202
|
summary: The Prima twig toolbelt
|