#NEWLINE# def _pretty_print( logger , application ) : #NEWLINE# #INDENT# 'Pretty print application details to stdout\n    ' #NEWLINE# logger . log ( 'ID:           %s' , application [ 'id' ] . lstrip ( '/' ) ) #NEWLINE# logger . log ( 'CPUs:         %s' , application [ 'cpus' ] ) #NEWLINE# logger . log ( 'RAM:          %s' , application [ 'mem' ] ) #NEWLINE# logger . log ( 'Instances:    %s' , application [ 'instances' ] ) #NEWLINE# logger . log ( 'Docker Image: %s' , application [ 'container' ] [ 'docker' ] [ 'image' ] ) #NEWLINE# logger . log ( 'Version:      %s' , application [ 'version' ] ) #NEWLINE# logger . log ( 'Status:       %s' , _app_status ( logger , application ) ) #NEWLINE# logger . log ( '' ) #NEWLINE# logger . log ( 'Tasks:' ) #NEWLINE# for task in application [ 'tasks' ] : #NEWLINE# #INDENT# logger . log ( '- ID:   %s' , task [ 'id' ] ) #NEWLINE# for port in task [ 'ports' ] : #NEWLINE# #INDENT# logger . log ( '  Host: %s:%d' , task [ 'host' ] , port )