zk-server 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zk-server/command.rb +12 -6
- data/lib/zk-server/version.rb +1 -1
- data/zk-server.gemspec +1 -1
- metadata +7 -8
data/lib/zk-server/command.rb
CHANGED
@@ -24,12 +24,12 @@ module ZK
|
|
24
24
|
def run
|
25
25
|
opts = Slop.parse(:help => true, :strict => true) do
|
26
26
|
banner "zk-server [opts] runs a ZooKeeper server in the foreground"
|
27
|
-
on :d, :base_dir=,
|
28
|
-
on :
|
29
|
-
on :skip_acl,
|
30
|
-
on :p, :port=,
|
31
|
-
on :jvm_flags=,
|
32
|
-
on :snap_count=,
|
27
|
+
on :d, :base_dir=, "defaults to #{ZK::Server::Config.default_base_dir}"
|
28
|
+
on :no_force_sync, "don't force fsync on every snapshot"
|
29
|
+
on :skip_acl, 'skip acl checks'
|
30
|
+
on :p, :port=, 'port to listen on', :as => :integer
|
31
|
+
on :jvm_flags=, 'additional JVM flags to pass'
|
32
|
+
on :snap_count=, 'how often to take a snapshot, default 100_000', :as => :integer
|
33
33
|
end
|
34
34
|
|
35
35
|
return if opts.help?
|
@@ -37,6 +37,12 @@ module ZK
|
|
37
37
|
hash = opts.to_hash
|
38
38
|
|
39
39
|
hash.delete(:help)
|
40
|
+
hash[:force_sync] = !hash.delete(:no_force_sync)
|
41
|
+
|
42
|
+
if flags = hash.delete(:jvm_flags)
|
43
|
+
hash[:jvm_flags] = flags.split(' ')
|
44
|
+
end
|
45
|
+
|
40
46
|
hash.reject! { |k,v| v.nil? }
|
41
47
|
|
42
48
|
config = ZK::Server::Config.new(hash)
|
data/lib/zk-server/version.rb
CHANGED
data/zk-server.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.summary = s.description + "\n"
|
9
9
|
s.homepage = "http://github.com/slyphon/zk-server"
|
10
10
|
|
11
|
-
s.add_runtime_dependency 'bundler', '~> 1.1
|
11
|
+
s.add_runtime_dependency 'bundler', '~> 1.1'
|
12
12
|
s.add_runtime_dependency 'slyphon-log4j', '= 1.2.15'
|
13
13
|
s.add_runtime_dependency 'slyphon-zookeeper_jar', '~> 3.3.5'
|
14
14
|
s.add_runtime_dependency 'slop', '~> 3.2.0'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zk-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 4
|
10
|
+
version: 1.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan D. Simms
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-09-22 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
@@ -25,12 +25,11 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 13
|
29
29
|
segments:
|
30
30
|
- 1
|
31
31
|
- 1
|
32
|
-
|
33
|
-
version: 1.1.3
|
32
|
+
version: "1.1"
|
34
33
|
type: :runtime
|
35
34
|
version_requirements: *id001
|
36
35
|
- !ruby/object:Gem::Dependency
|
@@ -145,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
144
|
requirements: []
|
146
145
|
|
147
146
|
rubyforge_project:
|
148
|
-
rubygems_version: 1.8.
|
147
|
+
rubygems_version: 1.8.17
|
149
148
|
signing_key:
|
150
149
|
specification_version: 3
|
151
150
|
summary: runs a standalone zookeeper server
|