Esempio n. 1
0
 def invoked (self):
     
     bologna = Bologna(os.getcwd())
     
     try:
         bologna.build()
     except DirectiveException, e:
         logging.error('Build Error: %s' % e)
Esempio n. 2
0
    def invoked (self):
        bologna = Bologna(os.getcwd())
        changes =  bologna.status()

        print "The following changes have been made since the last build."
        print
        if len(changes) == 0:
            print "No Changes have occurted"

        for change_type, path in changes:
            print "\t%s\t%s" % (change_type, path)
Esempio n. 3
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))