neo4j-rake_tasks 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neo4j/rake_tasks/server_manager.rb +14 -9
- data/lib/neo4j/rake_tasks/version.rb +1 -1
- 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: 5adbd5bb5e6eff1297a645558d1226b5eb98221c
|
4
|
+
data.tar.gz: 61aaf925e2a9e746ee3e5377b22d12a8d1684f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d49f4675b6e44b6b1143726788e660604104db5546a0906c6824f542c87fbf9c9d8949e9687638063a8d7f1924c4f797e10db909ec8780b571da86ae3a5a810e
|
7
|
+
data.tar.gz: f110bfe6df8298010b17fdef012a2d0afa9f25240ef26d98f67272ec48bf539b3f18a5b9f7f9c9ed346586ddd7bf5857af13e15200cd8a835b7a04de0dc3e64e
|
@@ -76,13 +76,17 @@ module Neo4j
|
|
76
76
|
|
77
77
|
stop
|
78
78
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
79
|
+
paths = if server_version >= '3.0.0'
|
80
|
+
['data/graph.db/*', 'data/log/*']
|
81
|
+
else
|
82
|
+
['data/databases/graph.db/*', 'logs/*']
|
83
|
+
end
|
84
|
+
|
85
|
+
paths.each do |path|
|
86
|
+
delete_path = @path.join(path)
|
87
|
+
puts "Deleting all files matching #{delete_path}"
|
88
|
+
FileUtils.rm_rf(Dir.glob(delete_path))
|
89
|
+
end
|
86
90
|
|
87
91
|
start
|
88
92
|
end
|
@@ -110,14 +114,15 @@ module Neo4j
|
|
110
114
|
end
|
111
115
|
|
112
116
|
def config_port!(port)
|
113
|
-
puts "Config ports #{port} / #{port - 1}"
|
117
|
+
puts "Config ports #{port} (HTTP) / #{port - 1} (HTTPS) / #{port - 2} (Bolt)"
|
114
118
|
|
115
119
|
if server_version >= '3.0.0'
|
116
120
|
# These are not ideal, perhaps...
|
117
121
|
modify_config_file('dbms.connector.https.enabled' => false,
|
118
122
|
'dbms.connector.http.enabled' => true,
|
119
123
|
'dbms.connector.http.address' => "localhost:#{port}",
|
120
|
-
'dbms.connector.https.address' => "localhost:#{port - 1}"
|
124
|
+
'dbms.connector.https.address' => "localhost:#{port - 1}",
|
125
|
+
'dbms.connector.bolt.address' => "localhost:#{port - 2}")
|
121
126
|
else
|
122
127
|
modify_config_file('org.neo4j.server.webserver.https.enabled' => false,
|
123
128
|
'org.neo4j.server.webserver.port' => port,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|