Beispiel #1
0
 def cmd(self, command_line):
     "Shows bombardier version info"
     cnm = system_state.cnm_connector
     from bombardier_cli._version import version_info as clv
     from bombardier_core._version import version_info as crv
     output = ["CLI: %s-%s" % (clv.get("branch_nick"), clv.get("revno")),
               "CLI-Core: %s-%s" % (crv.get("branch_nick"), crv.get("revno")),
              ]
     server_version_info = cnm.get_server_version()
     output += server_version_info
     return OK, output
Beispiel #2
0
 def read(self, request):
     "Default read method"
     from bombardier_server._version import version_info as srv
     from bombardier_core._version import version_info as crv
     output = ["Server: %s-%s" % (srv.get("branch_nick"), srv.get("revno")),
               "Server-core: %s-%s" % (crv.get("branch_nick"), crv.get("revno")),
              ]
     dispatcher = self.get_dispatcher()
     client_version_info = dispatcher.get_client_versions()
     for key in client_version_info:
         output.append("%s: %s" % (key, client_version_info[key]))
     responder = JsonDictResponder(output)
     open("/tmp/FOOP.txt", 'a').write("output: %s\n" % output)
     return responder.element(request)