t2-server 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/run_workflow +5 -1
- data/lib/t2server.rb +1 -1
- data/lib/t2server/xml.rb +1 -1
- metadata +4 -4
data/bin/run_workflow
CHANGED
@@ -45,7 +45,11 @@ def get_outputs(run, pout, dir="")
|
|
45
45
|
dirs.each {|d| get_outputs(run, pout, "#{dir}/#{d}")}
|
46
46
|
files.each do |out|
|
47
47
|
print " #{dir}/#{out} -> "
|
48
|
-
|
48
|
+
if dir == ""
|
49
|
+
output_name = out
|
50
|
+
else
|
51
|
+
output_name = "#{dir[1..-1]}/#{out}"
|
52
|
+
end
|
49
53
|
data = run.get_output(output_name)
|
50
54
|
if pout
|
51
55
|
p data
|
data/lib/t2server.rb
CHANGED
data/lib/t2server/xml.rb
CHANGED
@@ -41,7 +41,7 @@ module T2Server
|
|
41
41
|
end
|
42
42
|
|
43
43
|
module Fragments
|
44
|
-
WORKFLOW = "<t2s:
|
44
|
+
WORKFLOW = "<t2s:workflow xmlns:t2s=\"#{Namespaces::SERVER}\">\n %s\n</t2s:workflow>"
|
45
45
|
RUNINPUT = "<t2sr:runInput xmlns:t2sr=\"#{Namespaces::REST}\">\n %s\n</t2sr:runInput>"
|
46
46
|
RUNINPUTVALUE = RUNINPUT % "<t2sr:value>%s</t2sr:value>"
|
47
47
|
RUNINPUTFILE = RUNINPUT % "<t2sr:file>%s</t2sr:file>"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t2-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Robert Haines
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-26 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|