neo4j-rake_tasks 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/lib/neo4j/rake_tasks/neo4j_server.rake +2 -0
- data/lib/neo4j/rake_tasks/server_manager.rb +7 -2
- 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: 2109618a613b028d74cca697d585e5ae40729f5d
|
4
|
+
data.tar.gz: 6eddba8e355d6bee52d0e9a0935c8dd93c7f7b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70ee17983a1a2d9c9c4c7863034b7755a12d653e9f604e83981de3d20eead5934af808df2124f7dbad74015ab95e6505e1647396ec9cff721a9756285f9d95fb
|
7
|
+
data.tar.gz: 3bc0531e5076015bb6e8ee7ab9a76e3ddead32c01e448d64abc0aeb76866e8b4f516aa91675dbff84550fef52ddf86399ec75d4aa596a4458f40dbcd93a4363b
|
data/README.md
CHANGED
@@ -84,3 +84,20 @@ The ``neo4j-rake_tasks`` gem (automatically included with the ``neo4j`` gem) inc
|
|
84
84
|
Stop the Neo4j server
|
85
85
|
|
86
86
|
|
87
|
+
## neo4j:reset_yes_i_am_sure
|
88
|
+
|
89
|
+
### Arguments
|
90
|
+
|
91
|
+
``environment``
|
92
|
+
|
93
|
+
### Example
|
94
|
+
|
95
|
+
``rake neo4j:reset_yes_i_am_sure[development]``
|
96
|
+
|
97
|
+
### Description
|
98
|
+
|
99
|
+
- Stop the Neo4j server
|
100
|
+
- Deletes all files matching `[db-root]/data/graph.db/*`
|
101
|
+
- Deletes all files matching `[db-root]/data/log/*`
|
102
|
+
- Start the Neo4j server
|
103
|
+
|
@@ -107,6 +107,8 @@ namespace :neo4j do
|
|
107
107
|
task :reset_yes_i_am_sure, :environment do |_, args|
|
108
108
|
args.with_defaults(environment: :development)
|
109
109
|
|
110
|
+
puts "Resetting Neo4j in #{args[:environment]}..."
|
111
|
+
|
110
112
|
server_manager = server_manager(args[:environment])
|
111
113
|
server_manager.reset
|
112
114
|
end
|
@@ -55,8 +55,13 @@ module Neo4j
|
|
55
55
|
|
56
56
|
stop
|
57
57
|
|
58
|
-
|
59
|
-
|
58
|
+
delete_path = @path.join('data/graph.db/*')
|
59
|
+
puts "Deleting all files matching #{delete_path}"
|
60
|
+
FileUtils.rm_rf(Dir.glob(delete_path))
|
61
|
+
|
62
|
+
delete_path = @path.join('data/log/*')
|
63
|
+
puts "Deleting all files matching #{delete_path}"
|
64
|
+
FileUtils.rm_rf(Dir.glob(delete_path))
|
60
65
|
|
61
66
|
start
|
62
67
|
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.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|