예제 #1
0
def feeder_run(o):
    if o['list']:
        if o['fake']:
            list_fake_types()
        elif o['transports']:
            list_transports()
        elif o['formatters']:
            list_formatters()

    elif o['feed']:
        generator(config=o.get('--config'),
                  transport=o.get('--transport'),
                  formatter=o.get('--format'),
                  gap=o.get('--gap'),
                  messages=o.get('--messages'),
                  batch=o.get('--batch'),
                  verbose=o.get('--verbose'))
예제 #2
0
def feeder_run(o):
    if o['list']:
        if o['fake']:
            list_fake_types()
        elif o['transports']:
            list_transports()
        elif o['formatters']:
            list_formatters()

    elif o['feed']:
        generator(config=o.get('--config'),
                 transport=o.get('--transport'),
                 formatter=o.get('--format'),
                 gap=o.get('--gap'),
                 messages=o.get('--messages'),
                 batch=o.get('--batch'),
                 verbose=o.get('--verbose'))
예제 #3
0
파일: test_feedr.py 프로젝트: neofort/feedr
 def test_list_transports(self):
     fd.list_transports()
예제 #4
0
 def test_list_transports(self):
     fd.list_transports()