ganymed 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ganymed +4 -4
- data/lib/ganymed/master.rb +6 -0
- data/lib/ganymed/version.rb +1 -1
- metadata +4 -4
data/bin/ganymed
CHANGED
@@ -8,13 +8,11 @@ $0 = "ganymed"
|
|
8
8
|
require 'madvertise/ext/environment'
|
9
9
|
Env.key = 'GANYMED_ENV'
|
10
10
|
|
11
|
-
require 'madvertise-logging'
|
12
|
-
$log = ImprovedLogger.new(:stdout, $0)
|
13
|
-
|
14
11
|
require 'ganymed/master'
|
15
12
|
cli = Ganymed::Master::CLI.parse_options
|
16
|
-
server = Ganymed::Master.new(cli.config)
|
17
13
|
|
14
|
+
require 'madvertise-logging'
|
15
|
+
$log = ImprovedLogger.new(cli.config[:log_backend].to_sym, $0)
|
18
16
|
$log.level = :debug if cli.config[:debug]
|
19
17
|
|
20
18
|
$config ||= Configuration.new do |config|
|
@@ -27,6 +25,8 @@ if Env.prod?
|
|
27
25
|
format = "<%{syslog_severity}>%{msg}\n"
|
28
26
|
end
|
29
27
|
|
28
|
+
server = Ganymed::Master.new(cli.config)
|
29
|
+
|
30
30
|
if cli.config[:daemonize] or cli.config[:kill]
|
31
31
|
daemon = Servolux::Daemon.new(:server => server)
|
32
32
|
|
data/lib/ganymed/master.rb
CHANGED
@@ -98,6 +98,12 @@ module Ganymed
|
|
98
98
|
:long => '--config CONFIG',
|
99
99
|
:description => "The configuration file to use"
|
100
100
|
|
101
|
+
option :log_backend,
|
102
|
+
:short => '-l BACKEND',
|
103
|
+
:long => '--log-backend BACKEND',
|
104
|
+
:description => "The log backend to use",
|
105
|
+
:default => "stdout"
|
106
|
+
|
101
107
|
option :pidfile,
|
102
108
|
:short => '-p PIDFILE',
|
103
109
|
:long => '--pidfile PIDFILE',
|
data/lib/ganymed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ganymed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -220,7 +220,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
segments:
|
222
222
|
- 0
|
223
|
-
hash:
|
223
|
+
hash: -3865889358081800589
|
224
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
225
|
none: false
|
226
226
|
requirements:
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
segments:
|
231
231
|
- 0
|
232
|
-
hash:
|
232
|
+
hash: -3865889358081800589
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
235
|
rubygems_version: 1.8.25
|