Example #1
0
def tag(program, tag, *urls):
    """Usage: tag [url ...]

    Tags the urls[s] with the given tag.
    Urls may be quoted whitespace-separated lists of replicas.
    """
    from disco.util import listify
    program.ddfs.tag(tag, [listify(i) for i in program.input(*urls)])
Example #2
0
def tag(program, tag, *urls):
    """Usage: tag [url ...]

    Tags the urls[s] with the given tag.
    Urls may be quoted whitespace-separated lists of replicas.
    """
    from disco.util import listify
    program.ddfs.tag(tag, [listify(i) for i in program.input(*urls)])
Example #3
0
 def chunk_name(replicas, n):
     url = listify(replicas)[0]
     return self.safe_name("{0}-{1}".format(os.path.basename(url), n))
Example #4
0
 def chunk_name(replicas, n):
     url = listify(replicas)[0]
     return self.safe_name('{0}-{1}'.format(os.path.basename(url), n))
Example #5
0
 def chunk_name(replicas, n):
     url = listify(replicas)[0]
     return self.safe_name('%s-%s' % (os.path.basename(url), n))