def deploy_network(): log.info("Deploying network") tar_file = deploy.package("rendered/nectar1/netkit/", "netkit") server = "trc1.trc.adelaide.edu.au" deploy.transfer(server, "sknight", tar_file, tar_file) print "server", server cd_dir = "rendered/nectar1/netkit/" deploy.extract(server, tar_file, cd_dir)
def deploy_network(nidb): log.info("Deploying network") tar_file = deploy.package("rendered/nectar1/nklab/", "nklab") server = "trc1.trc.adelaide.edu.au" username = "******" server = "115.146.93.255" # 16 core server = "115.146.94.68" # 8 core username = "******" key_filename = "/Users/sk2/.ssh/sk.pem" deploy.transfer(server, username, tar_file, tar_file, key_filename) cd_dir = "rendered/nectar1/nklab/" deploy.extract(server, username, tar_file, cd_dir, timeout = 60, key_filename= key_filename)