cmdr 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cmdr.rb +14 -0
- metadata +2 -2
data/lib/cmdr.rb
CHANGED
|
@@ -133,5 +133,19 @@ ocommandInput.value = '';
|
|
|
133
133
|
ocommandInput.value = '';
|
|
134
134
|
"
|
|
135
135
|
end
|
|
136
|
+
|
|
137
|
+
private
|
|
138
|
+
|
|
139
|
+
def run_rscript(rsf_url, jobs, arg='')
|
|
140
|
+
ajobs = jobs.split(/\s/)
|
|
141
|
+
args = [rsf_url, ajobs, arg].flatten
|
|
142
|
+
RScript.new().read(args)
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def run_script(url, jobs, qargs='')
|
|
146
|
+
result, args = run_rscript(url, jobs, qargs)
|
|
147
|
+
eval(result)
|
|
148
|
+
end
|
|
149
|
+
|
|
136
150
|
end
|
|
137
151
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cmdr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors: []
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-08-
|
|
12
|
+
date: 2010-08-17 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|