pushyd 0.26.2 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pushyd +6 -2
- data/pushyd.gemspec +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: 1c687913ba9e0ef819a7a9439c5ebb3331699848
|
4
|
+
data.tar.gz: d1a40a6414b338a1855eb8f735600e72c09a8e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126b696364c17ab53699bb61460e92d50f0a4bc301df3acce409ae5f67eb7ca91b9ec77e49a56c89f0bac347e4dc6c057653334ed31eca106d0567ee16514fbe
|
7
|
+
data.tar.gz: 1c5f9e952b63ee625044f3c96164f70f0005cf1b665a77bc095af079eb303a9e98f6350c4e673a5cba84d391d2167def82f6aaf74b9a2e93adc06d40106aa1ab
|
data/bin/pushyd
CHANGED
@@ -18,6 +18,7 @@ begin
|
|
18
18
|
cmd_config = nil
|
19
19
|
cmd_logfile = nil
|
20
20
|
cmd_dump = nil
|
21
|
+
cmd_daemonize = nil
|
21
22
|
|
22
23
|
# Init Chamber-based configuration from Gemspec
|
23
24
|
Conf.init File.dirname(__FILE__) + "/../"
|
@@ -29,6 +30,8 @@ begin
|
|
29
30
|
opts.on("-l", "--log LOGFILE") { |path| cmd_logfile = File.expand_path(path.to_s)}
|
30
31
|
opts.on("-c", "--config CONFIGFILE") { |path| cmd_config = File.expand_path(path.to_s)}
|
31
32
|
opts.on("-e", "--environment ENV") { |env| Conf.app_env = env }
|
33
|
+
opts.on("-d", "--daemonize", "Run daemonized in the background"){ cmd_daemonize = true }
|
34
|
+
opts.on("-f", "--foreground", "Run in the foreground") { cmd_daemonize = false }
|
32
35
|
opts.on("", "--dev") { Conf.app_env = "development" }
|
33
36
|
opts.on("", "--dump", "Dump config as seen by the process") { |value| cmd_dump = true }
|
34
37
|
end
|
@@ -55,6 +58,7 @@ puts "--- #{Conf.app_name} #{Conf.app_ver}"
|
|
55
58
|
puts "Environment \t #{Conf.app_env}"
|
56
59
|
puts "Config files \t #{Conf.files}"
|
57
60
|
puts "Started at \t #{Conf.app_started}"
|
61
|
+
puts "Daemonize \t #{cmd_daemonize}"
|
58
62
|
puts "Loging to file \t #{Conf[:log][:file]}" if Conf[:log].is_a? Enumerable
|
59
63
|
puts "Process name \t #{Conf.generate_process_name}"
|
60
64
|
puts "Newrelic \t #{Conf.feature_newrelic? || '-'}"
|
@@ -66,8 +70,8 @@ end
|
|
66
70
|
|
67
71
|
# Run daemon
|
68
72
|
run_options = {
|
69
|
-
monitor: false,
|
70
|
-
ontop:
|
73
|
+
monitor: false,
|
74
|
+
ontop: !cmd_daemonize,
|
71
75
|
backtrace: true,
|
72
76
|
multiple: false,
|
73
77
|
dir_mode: :normal,
|
data/pushyd.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushyd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno MEDICI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|