eclipsed 0.6.0 → 0.6.1
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 +22 -18
- 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: 5de76ce7d0350c518da9ad156ff9fc645b76229d
|
4
|
+
data.tar.gz: 321fa325a8bca970b543c65afc8fdbccb674a796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dffaac7ab67b176b764b25c787425760dcf2d9055684ef1e10a0ba0999f8ffeee005ecde5f5551df7b445610d10c4492283494c1a9669c776686c69fe870722
|
7
|
+
data.tar.gz: ad0a62d1fb99d5063ac95898b76177a6f9d919c388ad10e939dd83fabb8087a9dd9c182d9b5595aa3845bc05fc3996053115e051079f9dc4aa8e615f7ccaf4d1
|
data/lib/eclipsed/version.rb
CHANGED
data/lib/eclipsed.rb
CHANGED
@@ -23,26 +23,27 @@ module Eclipsed
|
|
23
23
|
|
24
24
|
class Core
|
25
25
|
include Eclipsed
|
26
|
-
#
|
27
|
-
def
|
28
|
-
|
29
|
-
@
|
26
|
+
# Configure {{{
|
27
|
+
def configure
|
28
|
+
json_conf = File.open(find_confpath) { |f| JSON.parse(f.read) }
|
29
|
+
@nodelist = json_conf['network']['nodes']
|
30
|
+
@app_dir = json_conf['path']['applications']
|
30
31
|
@verbose = false
|
31
32
|
end
|
32
33
|
|
33
34
|
# }}}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
35
|
+
# find_confpath {{{
|
36
|
+
def find_confpath
|
37
|
+
home = "#{ENV['HOME']}/.eclipse.json"
|
38
|
+
etc = "/etc/.eclipse.json"
|
39
|
+
|
40
|
+
if File.exists? home
|
41
|
+
return home
|
42
|
+
elsif File.exists? etc
|
43
|
+
return etc
|
44
|
+
end
|
45
|
+
end
|
46
|
+
# }}}
|
46
47
|
# launch {{{
|
47
48
|
def launch
|
48
49
|
thr = print_async "Initializing framework..."
|
@@ -169,8 +170,11 @@ module Eclipsed
|
|
169
170
|
end
|
170
171
|
|
171
172
|
class CLI_driver < Core
|
172
|
-
def initialize input:
|
173
|
-
super
|
173
|
+
def initialize input: #{{{
|
174
|
+
super
|
175
|
+
|
176
|
+
configure
|
177
|
+
|
174
178
|
OptionParser.new do |opts|
|
175
179
|
opts.banner = "eclipsed (Eclipse Daemon controler) is an script to manage the EclipseDFS\n" +
|
176
180
|
"Usage: eclipsed [options] <actions> [FILE]..."
|
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.6.
|
4
|
+
version: 0.6.1
|
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-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|