neo4j-rake_tasks 0.1.0 → 0.2.0

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: 14a465b65ff87c39fb3e4979e3daae5b09ed6e05
4
- data.tar.gz: 60c6a49dc93f595ab53c540d9e5f04495b5d3325
3
+ metadata.gz: a529fc1235caa1df510a21fd88548b0650f45ba8
4
+ data.tar.gz: c574b34b68e8d32a3059f0ad1fac348bd542e9ec
5
5
  SHA512:
6
- metadata.gz: df649986e283bce661c7647633149579d1e42c90e9061b244100aa93bd839f4f1b7fcd698a21a991956e6150e6fbeb524c1821c0bd88550adcf54839652f8766
7
- data.tar.gz: 6c079b8ea1df09b55ddf64769608103867ba0e8ccff7365b71e6277cbf57c46f4c5e420f763f9796b41fe7e18a4b0f9d3441c0919c8952cf4ca9cac5416bd1e9
6
+ metadata.gz: acc45ca7b255cb3d35728e8814414c44430d895bb7bf4196667f7ffbe14b6189e8f98a4c9171bf7b7ce6f344f019c59a69b2895beb80edcb6c84c941b1f599d9
7
+ data.tar.gz: 2d9a7ca964cbf1de017c75a1c17ffd96c18e7e796143872471a872d9c2c97369fcbb2d1547c1feb5b2a6991407e5385a10a8446258690ac436d0231d038f794e
@@ -63,6 +63,15 @@ namespace :neo4j do
63
63
  server_manager.start(false)
64
64
  end
65
65
 
66
+ desc 'Start the Neo4j Server in the foreground'
67
+ task :console, :environment do |_, args|
68
+ args.with_defaults(environment: :development)
69
+
70
+ puts "Starting Neo4j (foreground) in #{args[:environment]}..."
71
+ server_manager = server_manager(args[:environment])
72
+ server_manager.console
73
+ end
74
+
66
75
  desc 'Configure Server, e.g. rake neo4j:config[development,8888]'
67
76
  task :config, :environment, :port do |_, args|
68
77
  args.with_defaults(environment: :development)
@@ -38,6 +38,10 @@ module Neo4j
38
38
  system_or_fail(neo4j_command_path(:stop))
39
39
  end
40
40
 
41
+ def console
42
+ system_or_fail(neo4j_command_path(:console))
43
+ end
44
+
41
45
  def info
42
46
  validate_is_system_admin!
43
47
 
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module RakeTasks
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
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.1.0
4
+ version: 0.2.0
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-09-24 00:00:00.000000000 Z
11
+ date: 2015-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored