Permalink
Browse files

ReadFile 'source' is now called 'in', fixes #32

  • Loading branch information...
1 parent b665632 commit 2bc9984ad00baf3a8dfe0941d3128b08b3b6c4b4 @bergie bergie committed Jul 13, 2012
@@ -23,7 +23,7 @@ graph.addEdge "Greet User", "data", "Render", "options"
graph.addEdge "Write Response", "out", "Send", "in"
# Templating flow
-graph.addInitial "#{__dirname}/hello.jade", "Read Template", "source"
+graph.addInitial "#{__dirname}/hello.jade", "Read Template", "in"
graph.addEdge "Read Template", "out", "Render", "template"
graph.addEdge "Render", "out", "Write Response", "string"
View
@@ -120,7 +120,7 @@
"data": "/home/bergie/Projects/noflo/examples/http/hello.jade",
"tgt": {
"process": "Read Template",
- "port": "source"
+ "port": "in"
}
}
]
@@ -21,6 +21,6 @@ graph.addEdge "Split by Lines", "out", "Count Lines", "in"
graph.addEdge "Count Lines", "count", "Display", "in"
# Kick the process of by sending filename to fileReader
-graph.addInitial fileName, "Read File", "source"
+graph.addInitial fileName, "Read File", "in"
noflo.createNetwork graph
@@ -1,5 +1,5 @@
# Read a file
-'package.json' -> SOURCE Read(ReadFile)
+'package.json' -> IN Read(ReadFile)
# Split the file contents by newlines
Read() OUT -> IN Split(SplitStr)
# Count the packets
@@ -77,8 +77,8 @@
"data": "package.json",
"tgt": {
"process": "ReadFile",
- "port": "source"
+ "port": "in"
}
}
]
-}
+}
View
@@ -10,7 +10,7 @@ getBaseGraph = ->
exports["test ArrayPort type"] = (test) ->
network = getBaseGraph()
- port = network.processes["Display"].component.inPorts["in"]
+ port = network.processes["Display"].component.inPorts["in"]
test.equal port instanceof noflo.ArrayPort, true
test.done()
@@ -20,7 +20,7 @@ exports["test connecting to ArrayPorts"] = (test) ->
network = getBaseGraph()
test.equal network.connections.length, 2
- port = network.processes["Display"].component.inPorts["in"]
+ port = network.processes["Display"].component.inPorts["in"]
test.equal port.sockets.length, 2
test.done()

0 comments on commit 2bc9984

Please sign in to comment.