def _get_folder_type(self, filename): if filename == 'roles': return 'RolesFolder' # if filename == 'projects': # return 'IgnoredFolder' # TODO: 'ProjectsFolder' if filename[0] == '.': return 'IgnoredFolder' else: return SourceFolder._get_folder_type(self, filename)
def _get_file_type(self, filename): if filename == 'tasks.yml': return 'TasksShortcutFile' if filename == 'handlers.yml': return 'HandlersShortcutFile' if filename == 'vars.yml': return 'VarsShortcutFile' if filename == 'meta.yml': return 'MetaShortcutFile' return SourceFolder._get_file_type(self, filename)