<s> from fuel_dev_tools import command <EOL> from fuel_dev_tools import docker <EOL> from fuel_dev_tools import info <EOL> class DockerNailgunMixin ( docker . DockerMixin ) : <EOL> container = '<STR_LIT>' <EOL> default_command = '<STR_LIT>' <EOL> def get_log_directory ( self ) : <EOL> return '<STR_LIT>' <EOL> class NailgunInfo ( DockerNailgunMixin , info . BasicInfo ) : <EOL> @ classmethod <EOL> def get_info ( cls ) : <EOL> return ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> class Id ( DockerNailgunMixin , docker . IdCommand ) : <EOL> """<STR_LIT>""" <EOL> class Config ( DockerNailgunMixin , docker . ConfigCommand ) : <EOL> """<STR_LIT>""" <EOL> class DBReset ( DockerNailgunMixin , <EOL> command . BaseCommand ) : <EOL> """<STR_LIT>""" <EOL> def take_action ( self , parsed_args ) : <EOL> from fuel_dev_tools . docker import postgres <EOL> reset_sql = """<STR_LIT>""" <EOL> p = postgres . Shell ( self . app , self . app_args ) <EOL> cmd = [ <EOL> '<STR_LIT>' , '<STR_LIT>' . format ( reset_sql ) , <EOL> '<STR_LIT>' . format ( p . get_container_directory ( ) ) , <EOL> ] <EOL> p . ssh_command ( * cmd ) <EOL> cmd = p . container_command ( <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> ) <EOL> p . ssh_command ( * cmd ) <EOL> cmd = p . container_command ( <EOL> '<STR_LIT>' , '<STR_LIT:->' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , '<STR_LIT>' <EOL> ) <EOL> p . ssh_command ( * cmd ) <EOL> cmd = self . container_command ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> p . ssh_command ( * cmd ) <EOL> self . container_command ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> class Dir ( DockerNailgunMixin , docker . DirCommand ) : <EOL> """<STR_LIT>""" <EOL> class Log ( DockerNailgunMixin , docker . LogCommand ) : <EOL> """<STR_LIT>""" <EOL> class Restart ( DockerNailgunMixin , docker . RestartCommand ) : <EOL> """<STR_LIT>""" <EOL> class Rsync ( DockerNailgunMixin , docker . RsyncCommand ) : <EOL> """<STR_LIT>""" <EOL> @ property <EOL> def source_path ( self ) : <EOL> return '<STR_LIT>' <EOL> @ property <EOL> def target_path ( self ) : <EOL> return '<STR_LIT>' <EOL> def build_app_args_target ( self , target ) : <EOL> target , args = super ( Rsync , self ) . build_app_args_target ( target ) <EOL> return target , [ '<STR_LIT>' , '<STR_LIT>' ] + args <EOL> def post_sync ( self , parsed_args ) : <EOL> self . restart_container ( ) <EOL> class Start ( DockerNailgunMixin , docker . StartCommand ) : <EOL> """<STR_LIT>""" <EOL> class Stop ( DockerNailgunMixin , docker . StopCommand ) : <EOL> """<STR_LIT>""" <EOL> class Shell ( DockerNailgunMixin , docker . ShellCommand ) : <EOL> """<STR_LIT>""" <EOL> class Tail ( DockerNailgunMixin , docker . TailCommand ) : <EOL> """<STR_LIT>""" <EOL> class Volumes ( DockerNailgunMixin , docker . VolumesCommand ) : <EOL> """<STR_LIT>""" </s>
