#NEWLINE# def _get_deployment( pod , remote , subdomain ) : #NEWLINE# #INDENT# if dest_class : #NEWLINE# #INDENT# dest_class = webreview_destination . WebReviewDestination #NEWLINE# return dest_class ( dest_class . Config ( remote = remote , name = subdomain ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# deployment = pod . get_deployment ( 'webreview' ) #NEWLINE# if subdomain : #NEWLINE# #INDENT# deployment . config . subdomain = subdomain #NEWLINE# #UNINDENT# return deployment #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# text = 'Must provide --remote or specify a deployment named "webreview" in podspec.yaml.' #NEWLINE# raise click . ClickException ( text )