eclipsed 0.5.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a8dcdfda9c42ade682db6d2abbbd2062fabd9eb
4
- data.tar.gz: 28992e05f95770d5b69ddb6cf5245b6f8fd54bba
3
+ metadata.gz: f63c6d0d63cac35782b5b066e4696140d5ac40c1
4
+ data.tar.gz: 9d7e36652abcd13f48684390b6d4da9df9758fbe
5
5
  SHA512:
6
- metadata.gz: 669fed10b28fd5568cf8388f70a0dcbd7aed5c7b578b80aac81fcbc53934bd56382d63ddbae278ba685985c97d4bdc3f8c118b955e66d87de27774a358101ad1
7
- data.tar.gz: 103fe05455af322912717b2d28676f62d6033d7c598a9ee0968053e7cd1a7439464b892fd6b73d40ea043f2dcc8063e1776d6236ea7dad63eae2ccecbdc7e40c
6
+ metadata.gz: 7a181516271b9df82c0b11746f747b0ff148a5cf1b56c1b3ca1413b667510c1731fee9c91b0e4a887ba8037f02cbc31e0c00cc7a60fa93a17eb200a45b31d383
7
+ data.tar.gz: 92a4e6bf01d3ed426b753944542dcf2c8aef5a7d79286338edb06a7e59a9814369ea0622bf61acb74d6f96cb37f295a2a0892c666cdb0a112837d3cfcc58448d
data/lib/eclipsed.rb CHANGED
@@ -161,6 +161,11 @@ module Eclipsed
161
161
  system "scp #{file_name}.so #{node}:#{@app_dir}/"
162
162
  end
163
163
  end #}}}
164
+ # compile {{{
165
+ def compile(input)
166
+ file_name = File.basename(input,File.extname(input))
167
+ system "g++ -std=c++14 -Wall -Werror -o #{file_name} #{file_name}.cc -lvdfs -lboost_system"
168
+ end #}}}
164
169
  end
165
170
 
166
171
  class CLI_driver < Core
@@ -180,6 +185,7 @@ module Eclipsed
180
185
  opts.separator ""
181
186
  opts.separator "MapReduce actions"
182
187
  opts.separator " submit [app] Submit application to VeloxMR system"
188
+ opts.separator " compile [app] Compile application client binary"
183
189
  opts.separator ""
184
190
  opts.separator "Debugging actions"
185
191
  opts.separator " debug_at [N] Launch eclipseDFS with node N in gdb"
@@ -203,6 +209,7 @@ module Eclipsed
203
209
  when 'attach_at' then attach_at input[0]
204
210
  when 'all_but' then all_but input[0]
205
211
  when 'submit' then submit input[0]
212
+ when 'compile' then compile input[0]
206
213
  when 'pry' then pry
207
214
  else raise 'No valid argument, rerun with --help'
208
215
  end
@@ -1,3 +1,3 @@
1
1
  module Eclipsed
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  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.5.0
4
+ version: 0.6.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-03 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler