Changing ResourceManager naming for platform::ResourceName
[nepi.git] / examples / linux / ccn_transfer_using_linuxapp.py
index de85570..81b7195 100644 (file)
@@ -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)