56
57
58
59
60
61
62
63
64
|
# File 'lib/minke/config/reader.rb', line 56
def read_task_section section, docker_config
Task.new.tap do |t|
t.consul_loader = read_consul_loader_section section['consul_loader'] unless section['consul_loader'] == nil
t.health_check = read_url section['health_check'] unless section['health_check'] == nil
t.docker = read_docker_section section['docker'] unless section['docker'] == nil
t.pre = read_pre_post_section section['pre'] unless section['pre'] == nil
t.post = read_pre_post_section section['post'] unless section['post'] == nil
end
end
|