def install_vagrant_plugin(plugin, use_sudo=False):
cmd = '<STR_LIT>' % plugin<EOL>with settings(hide('<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>if use_sudo:<EOL><INDENT>if plugin not in sudo('<STR_LIT>'):<EOL><INDENT>sudo(cmd)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if plugin not in run('<STR_LIT>'):<EOL><INDENT>run(cmd)<EOL><DEDENT><DEDENT><DEDENT>
install vagrant plugin