Exemple #1
0
 def use_wget(url, name, workdir, timeout):
     return linux.wget(url,
                       workdir=workdir,
                       rename=name,
                       timeout=timeout,
                       interval=2,
                       callback=percentage_callback,
                       callback_data=url)
 def testName(self):
     ret = linux.wget("http://nothing", "/tmp", callback=self.callback)
     print "ret: %s" % ret
 def use_wget(url, name, workdir, timeout):
     return linux.wget(url, workdir=workdir, rename=name, timeout=timeout, interval=2, callback=percentage_callback, callback_data=url)
Exemple #4
0
 def testName(self):
     linux.wget(
         "http://linux.mirrors.es.net/centos/5.8/isos/i386/CentOS-5.8-i386-bin-3of7.iso",
         "/tmp",
         timeout=5,
         callback=self.callback)
 def testName(self):
     linux.wget("http://linux.mirrors.es.net/centos/5.8/isos/i386/CentOS-5.8-i386-bin-3of7.iso", "/tmp", timeout=5, callback=self.callback)
 def testName(self):
     ret = linux.wget("http://nothing", "/tmp", callback=self.callback)
     print "ret: %s" % ret
 def testName(self):
     ret = linux.wget("http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm", "/tmp", callback=self.callback)
     print "ret: %s" % ret
Exemple #8
0
 def testName(self):
     ret = linux.wget(
         "http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm",
         "/tmp",
         callback=self.callback)
     print "ret: %s" % ret
 def testName(self):
     ret = linux.wget("http://192.168.0.199/volumes/ubuntu1204.qcow2", "/tmp", rename="10G.qcow2", callback=self.callback)
     print "ret: %s" % ret