eclipsed 0.4.1 → 0.4.2

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: 6aefa7ff11b01ad700bb55f41f8054dc63ae935e
4
- data.tar.gz: 4dbb9b755d838712382fbd04ee081c940179a9ac
3
+ metadata.gz: d1931e614e7284b66e9fa230d53bf5a18d7fda14
4
+ data.tar.gz: 464e32ee1713da639d648a27dc082b7b04429192
5
5
  SHA512:
6
- metadata.gz: 2c1cfb541c68b02e1db2b8216a9a64f247622a3768625bf5f7eb4a0d1b430cbf5f4c9283f42f0b7a4afce919fc8266236ac2655e976916bf01e4c44e138d462d
7
- data.tar.gz: 2db95f9a1565963fb50756dd83c8e92f1ec43f98311cbc02ab6e465da13887f45fdf8e8ea8fdba6a9d225ba3919cdb1389a5b634a87d3c198769c4eb78c19003
6
+ metadata.gz: a010ea53190f6d5c16a3f6d16bf2ef0e72916f04c0f50c09cadf7dc0e33a6f19e55961091f057243710dfef92a66664ae80825e4b2ff8575fa70e224e1ab942c
7
+ data.tar.gz: 0f9ebf0b3d87ef28ae81296277c7f569189bf9a86296e3cdc90ea3d7df6e616f22b44899b67bed9f718627133ff2c11e550fcdce5875f1a290a0a70134b2c63d
@@ -1,3 +1,3 @@
1
1
  module Eclipsed
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/lib/eclipsed.rb CHANGED
@@ -54,6 +54,23 @@ module Eclipsed
54
54
  print "\r"
55
55
  end
56
56
 
57
+ #}}}
58
+ # all_but {{{
59
+ def all_but(index)
60
+ thr = print_async "Initializing framework..."
61
+ i = 0
62
+ @nodelist.each do |node|
63
+ if i != index.to_i then
64
+ cmd = "ssh #{node} 'export PATH=\"#{ENV['PATH']}\"; nohup eclipse_node </dev/null &>/dev/null &'"
65
+ puts cmd if @verbose
66
+ system cmd
67
+ end
68
+ i = i + 1
69
+ end
70
+ thr.exit
71
+ print "\r"
72
+ end
73
+
57
74
  #}}}
58
75
  # restart {{{
59
76
  def restart
@@ -154,6 +171,7 @@ module Eclipsed
154
171
  opts.separator "Debugging actions"
155
172
  opts.separator " debug_at [N] Launch eclipseDFS with node N in gdb"
156
173
  opts.separator " attach_at [N] Attach gdb to the N node"
174
+ opts.separator " all_but [N] Launch all eclipse in all nodes but one"
157
175
  opts.separator ""
158
176
  opts.separator "Options"
159
177
  opts.on_tail("-h", "--help" , "recursive this") { puts opts; exit}
@@ -170,6 +188,7 @@ module Eclipsed
170
188
  when 'kill' then kill input
171
189
  when 'debug_at' then debug_at input[0]
172
190
  when 'attach_at' then attach_at input[0]
191
+ when 'all_but' then all_but input[0]
173
192
  when 'pry' then pry
174
193
  else raise 'No valid argument, rerun with --help'
175
194
  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.1
4
+ version: 0.4.2
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-04-10 00:00:00.000000000 Z
11
+ date: 2016-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler