Exemple #1
0
def tom():
    lista = []
    for app in apps:
        try:
            obj = getJms(app.replace('.yaml', ''), 'tomcat')
            rest, uat, agt, prd, link = obj.getVer()
            for k, v in prd.iteritems():
                lista.append(k + '|' + app.replace('.yaml', '') + '|' + v +
                             '\n')
        except:
            pass

    f = open('tomcatVersions.txt', 'w')
    f.writelines(lista)
    f.close()
Exemple #2
0
def java_status():
    if request.args.get('application'):
        app = request.args.get('application')
        # getJms fetch instant, getJmsStatic fetch from cache file
        obj = getJms(app, 'java')
        #obj = getJmsStatic(app, 'java')
        rest, uat, agt, prd, link = obj.getVer()
    else:
        app = ""
    return render_template('show.html',
                           PRD=prd,
                           UAT=uat,
                           AGT=agt,
                           REST=rest,
                           Link=link,
                           App=app)
Exemple #3
0
def tom():
    for app in apps:
        lista = []
        try:
            obj = getJms(app.replace('.yaml', ''), 'tomcat')
            rest, uat, agt, prd, link = obj.getVer()
            for k, v in prd.iteritems():
                lista.append(k + ' : ' + v + '\n')
            for a, b in uat.iteritems():
                lista.append(a + ' : ' + b + '\n')
            for c, d in agt.iteritems():
                lista.append(c + ' : ' + d + '\n')
            for e, f in rest.iteritems():
                lista.append(e + ' : ' + f + '\n')
        except:
            pass

        f = open('tomcatVersionsFiles/' + app.replace('.yaml', ''), 'w')
        f.writelines(lista)
        f.close()