11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/shipitron/client/load_application_config.rb', line 11
def call
context.repository_url = config.repository
context.repository_branch = config.repository_branch
context.s3_cache_bucket = config.cache_bucket
context.image_name = config.image_name
context.named_tag = begin
if config.named_tag.nil?
'latest'
else
config.named_tag
end
end
context.build_script = config.build_script
context.post_builds = begin
if config.post_builds.nil?
[]
else
config.post_builds.map {|pb| PostBuild.new(pb) }
end
end
context.cluster_discovery = config.cluster_discovery
context.shipitron_task = config.shipitron_task
context.ecs_task_defs = config.ecs_task_defs
context.ecs_services = config.ecs_services
context.ecs_task_def_dir = config.ecs_task_def_dir
context.ecs_service_dir = config.ecs_service_dir
end
|