eclipsed 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dfd0aca54e3540bdd394e70fd0296241ef4b020
4
- data.tar.gz: ac5d0597b4490302b17a2b2a42170da5eb8017da
3
+ metadata.gz: 4a8dcdfda9c42ade682db6d2abbbd2062fabd9eb
4
+ data.tar.gz: 28992e05f95770d5b69ddb6cf5245b6f8fd54bba
5
5
  SHA512:
6
- metadata.gz: 4b18102171e7e321163a7cad4489aa20202987526747bb8e5881d29ca2cb2a70a6a28d1e5dfdaeb0839e216af995989da98c0b3785334acfabdf2998ee21c172
7
- data.tar.gz: cbde47d8f99cc5737f0edb73cedecd667b8490102b551b4be9265c1e0a21b1bf1143bc2e567c28eca7949e17e236f1e33e4586ac54f941a786a9e96914c73940
6
+ metadata.gz: 669fed10b28fd5568cf8388f70a0dcbd7aed5c7b578b80aac81fcbc53934bd56382d63ddbae278ba685985c97d4bdc3f8c118b955e66d87de27774a358101ad1
7
+ data.tar.gz: 103fe05455af322912717b2d28676f62d6033d7c598a9ee0968053e7cd1a7439464b892fd6b73d40ea043f2dcc8063e1776d6236ea7dad63eae2ccecbdc7e40c
@@ -1,3 +1,3 @@
1
1
  module Eclipsed
2
- VERSION = "0.4.3"
2
+ VERSION = "0.5.0"
3
3
  end
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.3
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-08-08 00:00:00.000000000 Z
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.5.1
122
+ rubygems_version: 2.4.3
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: EclipseDFS governor