<s> """<STR_LIT>""" <EOL> from optparse import make_option <EOL> from fabric . state import env <EOL> from fabric . context_managers import cd <EOL> from fabric . operations import run <EOL> from woven . management . base import WovenCommand <EOL> class Command ( WovenCommand ) : <EOL> """<STR_LIT>""" <EOL> option_list = WovenCommand . option_list + ( <EOL> make_option ( '<STR_LIT>' , <EOL> help = '<STR_LIT>' ) , <EOL> ) <EOL> help = """<STR_LIT>""" """<STR_LIT>""" <EOL> requires_model_validation = False <EOL> args = "<STR_LIT>" <EOL> def parse_host_args ( self , * args ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT:U+002C>' . join ( args [ <NUM_LIT:1> : ] ) <EOL> def handle_host ( self , * args , ** options ) : <EOL> opts = options . get ( '<STR_LIT>' ) <EOL> command = args [ <NUM_LIT:0> ] <EOL> path = '<STR_LIT>' % ( env . user , root_domain ( ) , env . project_fullname , env . project_name ) <EOL> pythonpath = '<STR_LIT>' % ( env . user , env . root_domain , env . project_fullname ) <EOL> with cd ( path ) : <EOL> result = run ( '<STR_LIT:U+0020>' . join ( [ pythonpath , '<STR_LIT>' , command , opts ] ) ) <EOL> if env . verbosity : <EOL> print result </s>
