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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08f732cf54968bcb224fcf14dd40e5509ade417d
4
- data.tar.gz: 3c028d1bcb848d903237d0be71bd0358a6916b59
3
+ metadata.gz: 5adbd5bb5e6eff1297a645558d1226b5eb98221c
4
+ data.tar.gz: 61aaf925e2a9e746ee3e5377b22d12a8d1684f61
5
5
  SHA512:
6
- metadata.gz: c698c613e56f7aa259026921d581be5b91c2574c6de94504e271262afd7227ee2d3b2bed70744c3b1bbdb9fb4935f3653358c57c0f4087da2f55d662619384f6
7
- data.tar.gz: 3a8c2d436cebe5f9f1a5c83c6c39a0b02157153888abf3e48b8bdd0894337f64ccefb64f847f4204722a687ed2b694db5ce656b61e7a337d45204090c50a4588
6
+ metadata.gz: d49f4675b6e44b6b1143726788e660604104db5546a0906c6824f542c87fbf9c9d8949e9687638063a8d7f1924c4f797e10db909ec8780b571da86ae3a5a810e
7
+ data.tar.gz: f110bfe6df8298010b17fdef012a2d0afa9f25240ef26d98f67272ec48bf539b3f18a5b9f7f9c9ed346586ddd7bf5857af13e15200cd8a835b7a04de0dc3e64e
@@ -76,13 +76,17 @@ module Neo4j
76
76
 
77
77
  stop
78
78
 
79
- delete_path = @path.join('data/graph.db/*')
80
- puts "Deleting all files matching #{delete_path}"
81
- FileUtils.rm_rf(Dir.glob(delete_path))
82
-
83
- delete_path = @path.join('data/log/*')
84
- puts "Deleting all files matching #{delete_path}"
85
- FileUtils.rm_rf(Dir.glob(delete_path))
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,
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module RakeTasks
3
- VERSION = '0.5.4'
3
+ VERSION = '0.5.5'
4
4
  end
5
5
  end
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
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 00:00:00.000000000 Z
11
+ date: 2016-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored