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 +4 -4
- data/lib/eclipsed/version.rb +1 -1
- data/lib/eclipsed.rb +19 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1931e614e7284b66e9fa230d53bf5a18d7fda14
|
4
|
+
data.tar.gz: 464e32ee1713da639d648a27dc082b7b04429192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a010ea53190f6d5c16a3f6d16bf2ef0e72916f04c0f50c09cadf7dc0e33a6f19e55961091f057243710dfef92a66664ae80825e4b2ff8575fa70e224e1ab942c
|
7
|
+
data.tar.gz: 0f9ebf0b3d87ef28ae81296277c7f569189bf9a86296e3cdc90ea3d7df6e616f22b44899b67bed9f718627133ff2c11e550fcdce5875f1a290a0a70134b2c63d
|
data/lib/eclipsed/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|