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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9359a2107226818279832bb3cebff304fcaae68a
4
- data.tar.gz: 14aae4752004e67267c22afa28025c5c5e5663f5
3
+ metadata.gz: 2109618a613b028d74cca697d585e5ae40729f5d
4
+ data.tar.gz: 6eddba8e355d6bee52d0e9a0935c8dd93c7f7b9e
5
5
  SHA512:
6
- metadata.gz: 353578249c4afe5fc3cf25a025efde5be16654de35292463723d11ad29ae720e538d20d84079281d100dfbae57c81eb4a258ccaf827b07b073a2c9e18b10d4c8
7
- data.tar.gz: 3c5a4c6e9c74697246899a9fd8550f059984eb0c7a1f42689bc24257c00cda73a09fd2b1e512ceb1674c2c02935fea6210236170484b4eb3c93ed688c9a3bca6
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
- FileUtils.rm_rf(@path.join('data/graph.db/*'))
59
- FileUtils.rm_rf(@path.join('data/log/*'))
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
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module RakeTasks
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
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.0.8
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-18 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored