eclipsed 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eclipsed/version.rb +1 -1
- data/lib/eclipsed.rb +10 -2
- 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: 7e9813f99b0fb03296f7ae694b18fbd5b10ba0d4
|
4
|
+
data.tar.gz: 639ee3ee92861404810f1d1e595f68ddc0f2d324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac71617c391e51f498ae58c4afe45b1f3a184fad4cb4a36c649fff40358a60cbc35c530042c8cf6f045373dc52ab98cf2a72e9d40077afd3fc378156ee5594c
|
7
|
+
data.tar.gz: 9bc7efcc5238c3883ded19c322441e75b9e8e7e5fe58afa5ca5a81f3ee5a311e95cc950ca474a857aee81aa13cb8b51730ba2a010270ecaac66e87d0b3ef1e4a
|
data/lib/eclipsed/version.rb
CHANGED
data/lib/eclipsed.rb
CHANGED
@@ -54,6 +54,13 @@ module Eclipsed
|
|
54
54
|
print "\r"
|
55
55
|
end
|
56
56
|
|
57
|
+
#}}}
|
58
|
+
# restart {{{
|
59
|
+
def restart
|
60
|
+
close
|
61
|
+
launch
|
62
|
+
end
|
63
|
+
|
57
64
|
#}}}
|
58
65
|
# debug_at {{{
|
59
66
|
def debug_at(index)
|
@@ -131,7 +138,6 @@ module Eclipsed
|
|
131
138
|
|
132
139
|
class CLI_driver < Core
|
133
140
|
def initialize input: #{{{
|
134
|
-
@options = {}
|
135
141
|
super()
|
136
142
|
OptionParser.new do |opts|
|
137
143
|
opts.banner = "eclipsed (Eclipse Daemon controler) is an script to manage the EclipseDFS\n" +
|
@@ -141,6 +147,7 @@ module Eclipsed
|
|
141
147
|
opts.separator "Core actions"
|
142
148
|
opts.separator " launch Create new Eclipse network"
|
143
149
|
opts.separator " close Close the network"
|
150
|
+
opts.separator " restart Close and create the network"
|
144
151
|
opts.separator " status Check the status of the network"
|
145
152
|
opts.separator " kill kill application in each node"
|
146
153
|
opts.separator ""
|
@@ -158,12 +165,13 @@ module Eclipsed
|
|
158
165
|
case input.shift
|
159
166
|
when 'launch' then launch
|
160
167
|
when 'close' then close
|
168
|
+
when 'restart' then restart
|
161
169
|
when 'status' then show
|
162
170
|
when 'kill' then kill input
|
163
171
|
when 'debug_at' then debug_at input[0]
|
164
172
|
when 'attach_at' then attach_at input[0]
|
165
173
|
when 'pry' then pry
|
166
|
-
else
|
174
|
+
else raise 'No valid argument, rerun with --help'
|
167
175
|
end
|
168
176
|
end #}}}
|
169
177
|
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.4.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-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|