7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'app/services/uffizzi_core/compose_file/parsers/services/healthcheck_parser_service.rb', line 7
def parse(healthcheck_data)
return {} if healthcheck_data.blank?
command = parse_command(healthcheck_data)
{
test: command,
interval: parse_time(healthcheck_data['interval']),
timeout: parse_time(healthcheck_data['timeout']),
retries: parse_retries(healthcheck_data['retries']),
start_period: parse_time(healthcheck_data['start_period']),
disable: parse_disable_option(healthcheck_data['disable'], command),
}
end
|