#NEWLINE# def site_ensure( site , lines ) : #NEWLINE# #INDENT# with ctx . sudo ( ) : #NEWLINE# #INDENT# with ctx . cd ( '/etc/nginx/sites-available/' ) : #NEWLINE# #INDENT# file . write ( site , lines ) #NEWLINE# #UNINDENT# #UNINDENT# site_enable ( site )