Exemple #1
0
 def _add_box(path, name):
     box = h.VagrantBox(name, path=path)
     logger.info("Adding vagrant box '{}'".format(name))
     h.Vagrant().box("add --provider virtualbox --name", box.name,
                     '--force', "'{}'".format(box.path))
     return box
Exemple #2
0
 def _check_box_added(box_name):
     vagrant_rows = h.Vagrant().box("list", parse=True)
     for row in vagrant_rows:
         if (row.data_type == 'box-name') and (row.data[0] == box_name):
             return True
     return False