예제 #1
0
def grid_status(subject, argv):
    if not HubController.is_running():
        ok("Grid is not running")
        sys.exit(1)
    grid = HubController.get_status()
    ok("GridIP: " + grid['Ip'] + ' Firefox Nodes: ' +
       str(grid['firefox_count']) + ' PhantomJS Nodes: ' +
       str(grid['phantomjs_count']) + ' Chrome Nodes: ' +
       str(grid['chrome_count']))
예제 #2
0
파일: shell.py 프로젝트: ram1fer/dsgrid
def start(subject, argv):
    if HubController.is_running():
        warning("Hub already running")
        sys.exit(1)

    info("Starting up grid...")
    status = HubController.start()
    if not status:
        fail("Hub failed to start")
        sys.exit(1)
    ok("Hub is Ready!")
예제 #3
0
def start(subject, argv):
    if HubController.is_running():
        warning("Hub already running")
        sys.exit(1)

    info("Starting up grid...")
    status = HubController.start()
    if not status:
        fail("Hub failed to start")
        sys.exit(1)
    ok("Hub is Ready!")
예제 #4
0
파일: shell.py 프로젝트: ram1fer/dsgrid
def grid_status(subject, argv):
    if not HubController.is_running():
        ok("Grid is not running")
        sys.exit(1)
    grid = HubController.get_status()
    ok(
        "GridIP: "
        + grid["Ip"]
        + " Firefox Nodes: "
        + str(grid["firefox_count"])
        + " PhantomJS Nodes: "
        + str(grid["phantomjs_count"])
        + " Chrome Nodes: "
        + str(grid["chrome_count"])
    )
예제 #5
0
파일: shell.py 프로젝트: ram1fer/dsgrid
def shutdown(subject, argv):
    if not HubController.is_running():
        fail("Hub is not running")
        sys.exit(1)
    info("Shutting down grid...")
    HubController.shutdown()
예제 #6
0
파일: shell.py 프로젝트: MEDBEDb/dsgrid
def grid_status(subject, argv):
    if not HubController.is_running():
        ok("Grid is not running")
        sys.exit(1)
    grid = HubController.get_status()
    ok("GridIP: " + grid['Ip'] + ' Firefox Nodes: ' + str(grid['firefox_count']) + ' PhantomJS Nodes: ' + str(grid['phantomjs_count']))
예제 #7
0
def shutdown(subject, argv):
    if not HubController.is_running():
        fail("Hub is not running")
        sys.exit(1)
    info("Shutting down grid...")
    HubController.shutdown()