def vagrant_workspace(self): if prompt(red(' * Are you working on the vagrant server (y/n)?'), default='y') == 'y': sudo('mv /var/www/html/ /vagrant/') sudo('cd /var/www/ && ln -s /vagrant/html/ .')