eclipsed 0.3.1 → 0.4.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: 2bf45ea74db9a7856962fc58f7b6fdb9c2a5c326
4
- data.tar.gz: 3d1e2a70ac981ded33ce9737b1a19db830dcac14
3
+ metadata.gz: 7e9813f99b0fb03296f7ae694b18fbd5b10ba0d4
4
+ data.tar.gz: 639ee3ee92861404810f1d1e595f68ddc0f2d324
5
5
  SHA512:
6
- metadata.gz: 4ae299f17f2bb09bcd7e954a2afbf5a8ab5b50316f4e5672b4951c914322b8f7a2df083de7c4b3bce366cc76ae15066ec0552ffcde60eebd35d3541a5743ddaa
7
- data.tar.gz: 9c2f72d1b1b9f78bb9f8d324fcd12e8d6f178dce8c1cd6b33bbaf59ee6fcc3f75c1e8f9337f98030187ea230d54f5fa1abf34ada095fcb00011343157904e82e
6
+ metadata.gz: 4ac71617c391e51f498ae58c4afe45b1f3a184fad4cb4a36c649fff40358a60cbc35c530042c8cf6f045373dc52ab98cf2a72e9d40077afd3fc378156ee5594c
7
+ data.tar.gz: 9bc7efcc5238c3883ded19c322441e75b9e8e7e5fe58afa5ca5a81f3ee5a311e95cc950ca474a857aee81aa13cb8b51730ba2a010270ecaac66e87d0b3ef1e4a
@@ -1,3 +1,3 @@
1
1
  module Eclipsed
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
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 raise "Not action given"
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.3.1
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-03-17 00:00:00.000000000 Z
11
+ date: 2016-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler