Esempio n. 1
0
File: GIT.py Progetto: iro/Framework
class GIT:
    '''
    
    '''
    def __init__(self):
        '''
        
        '''
        self.System = SystemOperations()
        
    def initiate(self, directory):
        '''
        
        '''
        self.System.executeCommand('git init', directory)
        
    def addFile(self, file):
        '''
        
        '''
        self.System.executeCommand('git add', file)
    
    def commit(self, message):
        '''
        
        '''
        self.System.executeCommand('git commit', message)
Esempio n. 2
0
 def createProject(self):
     '''
     Creates a project witht the name specified.
     '''
     System = SystemOperations()
     System.changeLocation(PROJECT_DIR)
     if System.checkExistance(self.project_name):
         self.errors.append('Project Already Exists!')
     else:
         System.createDirectory(self.project_name)
         System.changeLocation(PROJECT_DIR + self.project_name)
         System.createDirectory('packages')
         System.createDirectory('images')
         System.createDirectory('pdf')
         System.createDirectory('tex')
         System.createDirectory('work')
         System.createFile("file.tex", PROJECT_DIR + self.project_name + "/tex/") 
Esempio n. 3
0
File: GIT.py Progetto: iro/Framework
 def __init__(self):
     '''
     
     '''
     self.System = SystemOperations()