X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Flinux%2Fccn_transfer_using_linuxapp.py;h=81b7195e5a57c30f9a4794ae92fcc43b596e79b7;hb=04b471c90f38afe8dc0018f1b2c4e5d3dc9f4384;hp=de855705c3da3778945ec64949dd848b7674cf12;hpb=8e3d12389f29f338687f9113f1e463727ada6dc3;p=nepi.git diff --git a/examples/linux/ccn_transfer_using_linuxapp.py b/examples/linux/ccn_transfer_using_linuxapp.py index de855705..81b7195e 100644 --- a/examples/linux/ccn_transfer_using_linuxapp.py +++ b/examples/linux/ccn_transfer_using_linuxapp.py @@ -67,7 +67,7 @@ username = options.username ssh_key = options.ssh_key def add_node(ec, host, user, ssh_key = None): - node = ec.register_resource("LinuxNode") + node = ec.register_resource("linux::Node") ec.set(node, "hostname", host) ec.set(node, "username", user) ec.set(node, "identity", ssh_key) @@ -121,7 +121,7 @@ def add_ccnd(ec, peers): command += " ; ".join(peers) + " && " command += " ccnr & " - app = ec.register_resource("LinuxApplication") + app = ec.register_resource("linux::Application") ec.set(app, "depends", depends) ec.set(app, "sources", sources) ec.set(app, "install", install) @@ -135,7 +135,7 @@ def add_publish(ec, movie, content_name): env = "PATH=$PATH:${BIN}/ccnx-0.8.2/bin" command = "ccnseqwriter -r %s" % content_name - app = ec.register_resource("LinuxApplication") + app = ec.register_resource("linux::Application") ec.set(app, "stdin", movie) ec.set(app, "env", env) ec.set(app, "command", command) @@ -146,7 +146,7 @@ def add_ccncat(ec, content_name): env = "PATH=$PATH:${BIN}/ccnx-0.8.2/bin" command = "ccncat %s" % content_name - app = ec.register_resource("LinuxApplication") + app = ec.register_resource("linux::Application") ec.set(app, "env", env) ec.set(app, "command", command)