def load_ignore(vcs='git', type='service'):
    """ a method to retrieve the module template vcs ignore text """
    from os import path
    from pocketlab import __module__
    from importlib.util import find_spec
    module_path = find_spec(__module__).submodule_search_locations[0]
    file_text = ''
    if vcs.lower() in ('git', 'mercurial'):
        file_name = 'models/gitignore'
        if type.lower() == 'python':
            file_name += '.python'
        elif type.lower() == 'node':
            file_name += '.node'
        else:
            file_name += '.service'
        file_name += '.txt'
        file_path = path.join(module_path, file_name)
        file_text = open(file_path).read()
    if vcs.lower() == 'mercurial':
        import re
        wildcard_regex = re.compile('\n\\*\\.')
        file_text = wildcard_regex.sub('\n.', file_text)
        file_regex = re.compile('\n\\..*')
        file_text = file_regex.sub(lambda x: '%s$' % x.group(0) if x.group(
            0).find('/') == -1 else x.group(0), file_text)
        file_text = file_text.replace('.', '\\.')
        file_text = file_text.replace('\\.gitignore', ' .hgignore')
    elif vcs.lower() == 'docker':
        file_path = path.join(module_path, 'models/dockerignore.txt')
        file_text = open(file_path).read()
    return file_text
