Beispiel #1
0
#!/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
Beispiel #2
0
def get_job(job_id):
    client = Client('/usr/local/pkg/hub/etc/hub.conf')
    response = client.get(job_id)
    return response
Beispiel #3
0
def get_job(job_id):
    client = Client('/usr/local/pkg/hub/etc/hub.conf')
    response = client.get(job_id)
    return response