Skip to content

Commit

Permalink
ReadFile 'source' is now called 'in', fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jul 13, 2012
1 parent b665632 commit 2bc9984
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/http/hello.coffee
Expand Up @@ -23,7 +23,7 @@ graph.addEdge "Greet User", "data", "Render", "options"
graph.addEdge "Write Response", "out", "Send", "in" graph.addEdge "Write Response", "out", "Send", "in"


# Templating flow # 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 "Read Template", "out", "Render", "template"
graph.addEdge "Render", "out", "Write Response", "string" graph.addEdge "Render", "out", "Write Response", "string"


Expand Down
2 changes: 1 addition & 1 deletion examples/http/hello.json
Expand Up @@ -120,7 +120,7 @@
"data": "/home/bergie/Projects/noflo/examples/http/hello.jade", "data": "/home/bergie/Projects/noflo/examples/http/hello.jade",
"tgt": { "tgt": {
"process": "Read Template", "process": "Read Template",
"port": "source" "port": "in"
} }
} }
] ]
Expand Down
2 changes: 1 addition & 1 deletion examples/linecount/count.coffee
Expand Up @@ -21,6 +21,6 @@ graph.addEdge "Split by Lines", "out", "Count Lines", "in"
graph.addEdge "Count Lines", "count", "Display", "in" graph.addEdge "Count Lines", "count", "Display", "in"


# Kick the process of by sending filename to fileReader # Kick the process of by sending filename to fileReader
graph.addInitial fileName, "Read File", "source" graph.addInitial fileName, "Read File", "in"


noflo.createNetwork graph noflo.createNetwork graph
2 changes: 1 addition & 1 deletion examples/linecount/count.fbp
@@ -1,5 +1,5 @@
# Read a file # Read a file
'package.json' -> SOURCE Read(ReadFile) 'package.json' -> IN Read(ReadFile)
# Split the file contents by newlines # Split the file contents by newlines
Read() OUT -> IN Split(SplitStr) Read() OUT -> IN Split(SplitStr)
# Count the packets # Count the packets
Expand Down
4 changes: 2 additions & 2 deletions examples/linecount/count.json
Expand Up @@ -77,8 +77,8 @@
"data": "package.json", "data": "package.json",
"tgt": { "tgt": {
"process": "ReadFile", "process": "ReadFile",
"port": "source" "port": "in"
} }
} }
] ]
} }
4 changes: 2 additions & 2 deletions test/ArrayPort.coffee
Expand Up @@ -10,7 +10,7 @@ getBaseGraph = ->
exports["test ArrayPort type"] = (test) -> exports["test ArrayPort type"] = (test) ->
network = getBaseGraph() network = getBaseGraph()


port = network.processes["Display"].component.inPorts["in"] port = network.processes["Display"].component.inPorts["in"]
test.equal port instanceof noflo.ArrayPort, true test.equal port instanceof noflo.ArrayPort, true


test.done() test.done()
Expand All @@ -20,7 +20,7 @@ exports["test connecting to ArrayPorts"] = (test) ->
network = getBaseGraph() network = getBaseGraph()
test.equal network.connections.length, 2 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.equal port.sockets.length, 2


test.done() test.done()
Expand Down

0 comments on commit 2bc9984

Please sign in to comment.