Exemplo n.º 1
0
    def invoked(self):

        """
        Performs the following operations:
            1) Checks to see if a bologna instance already exists, if so,
            then fails miserably.

            2) Creates the reqired directories in the current working
            directory

            3) Copies the base template into the bologna folder of the
            current working directory and setups any configuration options
            that are instance specific.
        """

        try:
            bologna = Bologna.create(os.getcwd())
        except Exception, e:
            logging.error("Could not create Bologna: %s" % (e))