Exemplo n.º 1
0
Arquivo: getjob.py Projeto: sysbot/hub
#!/usr/bin/env python
import sys
import hub.lib.config as config

config_file = '/usr/local/pkg/hub/etc/hub.conf'

from hub.lib.client import Client

if __name__ == '__main__':
    jobid = sys.argv[1]
    client = Client(config_file)
    response = client.get(jobid)
    print response
Exemplo n.º 2
0
def get_job(job_id):
    client = Client('/usr/local/pkg/hub/etc/hub.conf')
    response = client.get(job_id)
    return response
Exemplo n.º 3
0
def get_job(job_id):
    client = Client('/usr/local/pkg/hub/etc/hub.conf')
    response = client.get(job_id)
    return response