eclipsed 0.4.3 → 0.5.0
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.
- checksums.yaml +4 -4
- data/lib/eclipsed/version.rb +1 -1
- data/lib/eclipsed.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a8dcdfda9c42ade682db6d2abbbd2062fabd9eb
|
4
|
+
data.tar.gz: 28992e05f95770d5b69ddb6cf5245b6f8fd54bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669fed10b28fd5568cf8388f70a0dcbd7aed5c7b578b80aac81fcbc53934bd56382d63ddbae278ba685985c97d4bdc3f8c118b955e66d87de27774a358101ad1
|
7
|
+
data.tar.gz: 103fe05455af322912717b2d28676f62d6033d7c598a9ee0968053e7cd1a7439464b892fd6b73d40ea043f2dcc8063e1776d6236ea7dad63eae2ccecbdc7e40c
|
data/lib/eclipsed/version.rb
CHANGED
data/lib/eclipsed.rb
CHANGED
@@ -26,6 +26,7 @@ module Eclipsed
|
|
26
26
|
# Initialize {{{
|
27
27
|
def initialize
|
28
28
|
@nodelist = File.open(find_confpath) { |f| JSON.parse(f.read) }['network']['nodes']
|
29
|
+
@app_dir = File.open(find_confpath) { |f| JSON.parse(f.read) }['path']['applications']
|
29
30
|
@verbose = false
|
30
31
|
end
|
31
32
|
|
@@ -151,6 +152,15 @@ module Eclipsed
|
|
151
152
|
require 'pry'
|
152
153
|
binding.pry
|
153
154
|
end #}}}
|
155
|
+
# submit {{{
|
156
|
+
def submit(input)
|
157
|
+
file_name = File.basename(input,File.extname(input))
|
158
|
+
system "g++ -c -std=c++14 -Wall -Werror -fpic #{input}"
|
159
|
+
system "gcc -shared -fPIC -o #{file_name}.so #{file_name}.o"
|
160
|
+
@nodelist.each do |node|
|
161
|
+
system "scp #{file_name}.so #{node}:#{@app_dir}/"
|
162
|
+
end
|
163
|
+
end #}}}
|
154
164
|
end
|
155
165
|
|
156
166
|
class CLI_driver < Core
|
@@ -168,6 +178,9 @@ module Eclipsed
|
|
168
178
|
opts.separator " status Check the status of the network"
|
169
179
|
opts.separator " kill kill application in each node"
|
170
180
|
opts.separator ""
|
181
|
+
opts.separator "MapReduce actions"
|
182
|
+
opts.separator " submit [app] Submit application to VeloxMR system"
|
183
|
+
opts.separator ""
|
171
184
|
opts.separator "Debugging actions"
|
172
185
|
opts.separator " debug_at [N] Launch eclipseDFS with node N in gdb"
|
173
186
|
opts.separator " attach_at [N] Attach gdb to the N node"
|
@@ -189,6 +202,7 @@ module Eclipsed
|
|
189
202
|
when 'debug_at' then debug_at input[0]
|
190
203
|
when 'attach_at' then attach_at input[0]
|
191
204
|
when 'all_but' then all_but input[0]
|
205
|
+
when 'submit' then submit input[0]
|
192
206
|
when 'pry' then pry
|
193
207
|
else raise 'No valid argument, rerun with --help'
|
194
208
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eclipsed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vicente Adolfo Bolea Sanchez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.4.3
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: EclipseDFS governor
|