示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
 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)